We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f1b241d commit b2d05aaCopy full SHA for b2d05aa
docs/src/lecture_02/scope.md
@@ -86,7 +86,7 @@ s
86
"""
87
88
# 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"
+"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"
90
```
91
92
Another option is to specify that the variable `s` is `global`.
0 commit comments