Fixed typo in function name

say() is not defined in the code, it should be sayHi() instead.
This commit is contained in:
Kevin Yang 2018-08-16 10:21:57 -04:00 committed by GitHub
parent 62226efedc
commit fe7175ddbc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -175,7 +175,7 @@ The execution flow of the code above:
1. The global Lexical Environment has `name: "John"`.
2. At the line `(*)` the global variable is changed, now it has `name: "Pete"`.
3. When the function `say()`, is executed and takes `name` from outside. Here that's from the global Lexical Environment where it's already `"Pete"`.
3. When the function `sayHi()`, is executed and takes `name` from outside. Here that's from the global Lexical Environment where it's already `"Pete"`.
```smart header="One call -- one Lexical Environment"