Skip to content

Commit b2d05aa

Browse files
committed
Fixed typo
1 parent f1b241d commit b2d05aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/src/lecture_02/scope.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ s
8686
"""
8787
8888
# output
89-
"s = 0\nfor i = 1:10\n t = 1 + i # new local variable t\n local s = t # assigning a new value to the global variable\nend\ns\n"
89+
"s = 0\nfor i = 1:10\n t = 1 + i # new local variable t\n local s = t # assigning a new value to the local variable\nend\ns\n"
9090
```
9191

9292
Another option is to specify that the variable `s` is `global`.

0 commit comments

Comments
 (0)