Skip to content

Commit

Permalink
Update blog/2024-10-01-local-variables.md
Browse files Browse the repository at this point in the history
Co-authored-by: Kevin Ness <[email protected]>
  • Loading branch information
raskad and nekevss authored Dec 10, 2024
1 parent 417e717 commit fa5c518
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blog/2024-10-01-local-variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ In this example, our two variables have different identifiers.
Notice that when we access the variable `a` from the block scope, its value is resolved as expected.
This is because scopes are nested.
When we cannot find a variable in the current scope, we look for the same identifier in the outer scope.
In this case we have to look for `a` in the block scope and then in the global scope.
In this case, we have to look for `a` in the block scope and then in the global scope.

Let's look at a more complex example:

Expand Down

0 comments on commit fa5c518

Please sign in to comment.