File tree Expand file tree Collapse file tree 19 files changed +76
-19
lines changed
v0.13.x/content/sentinel/docs/language
v0.14.x/content/sentinel/docs/language
v0.15.x/content/sentinel/docs/language
v0.16.x/content/sentinel/docs/language
v0.17.x/content/sentinel/docs/language
v0.18.x/content/sentinel/docs/language
v0.19.x/content/sentinel/docs/language
v0.20.x/content/sentinel/docs/language
v0.21.x/content/sentinel/docs/language
v0.22.x/content/sentinel/docs/language
v0.23.x/content/sentinel/docs/language
v0.24.x/content/sentinel/docs/language
v0.25.x/content/sentinel/docs/language
v0.26.x/content/sentinel/docs/language
v0.27.x/content/sentinel/docs/language
v0.28.x/content/sentinel/docs/language
v0.29.x/content/sentinel/docs/language
v0.30.x/content/sentinel/docs/language
v0.40.x/content/sentinel/docs/language Expand file tree Collapse file tree 19 files changed +76
-19
lines changed Original file line number Diff line number Diff line change @@ -72,6 +72,9 @@ The body of a `for` statement creates a new
7272[ scope] ( /sentinel/language/scope ) . If a variable is assigned within
7373the body of a for statement that isn't assigned in a parent scope,
7474that variable will only exist for the duration of the body execution.
75+ If the variable exists in the parent scope, assigning the variable a
76+ value in the body of a ` for ` statement updates it in the parent
77+ scope.
7578
7679Example:
7780
@@ -89,5 +92,5 @@ for list as value {
8992 a = 42
9093}
9194
92- print(a) // 18
95+ print(a) // 42
9396```
Original file line number Diff line number Diff line change @@ -72,6 +72,9 @@ The body of a `for` statement creates a new
7272[ scope] ( /sentinel/language/scope ) . If a variable is assigned within
7373the body of a for statement that isn't assigned in a parent scope,
7474that variable will only exist for the duration of the body execution.
75+ If the variable exists in the parent scope, assigning the variable a
76+ value in the body of a ` for ` statement updates it in the parent
77+ scope.
7578
7679Example:
7780
@@ -89,5 +92,5 @@ for list as value {
8992 a = 42
9093}
9194
92- print(a) // 18
95+ print(a) // 42
9396```
Original file line number Diff line number Diff line change @@ -72,6 +72,9 @@ The body of a `for` statement creates a new
7272[ scope] ( /sentinel/language/scope ) . If a variable is assigned within
7373the body of a for statement that isn't assigned in a parent scope,
7474that variable will only exist for the duration of the body execution.
75+ If the variable exists in the parent scope, assigning the variable a
76+ value in the body of a ` for ` statement updates it in the parent
77+ scope.
7578
7679Example:
7780
@@ -89,5 +92,5 @@ for list as value {
8992 a = 42
9093}
9194
92- print(a) // 18
95+ print(a) // 42
9396```
Original file line number Diff line number Diff line change @@ -72,6 +72,9 @@ The body of a `for` statement creates a new
7272[ scope] ( /sentinel/language/scope ) . If a variable is assigned within
7373the body of a for statement that isn't assigned in a parent scope,
7474that variable will only exist for the duration of the body execution.
75+ If the variable exists in the parent scope, assigning the variable a
76+ value in the body of a ` for ` statement updates it in the parent
77+ scope.
7578
7679Example:
7780
@@ -89,5 +92,5 @@ for list as value {
8992 a = 42
9093}
9194
92- print(a) // 18
95+ print(a) // 42
9396```
Original file line number Diff line number Diff line change @@ -72,6 +72,9 @@ The body of a `for` statement creates a new
7272[ scope] ( /sentinel/language/scope ) . If a variable is assigned within
7373the body of a for statement that isn't assigned in a parent scope,
7474that variable will only exist for the duration of the body execution.
75+ If the variable exists in the parent scope, assigning the variable a
76+ value in the body of a ` for ` statement updates it in the parent
77+ scope.
7578
7679Example:
7780
@@ -89,5 +92,5 @@ for list as value {
8992 a = 42
9093}
9194
92- print(a) // 18
95+ print(a) // 42
9396```
Original file line number Diff line number Diff line change @@ -71,6 +71,9 @@ The body of a `for` statement creates a new
7171[ scope] ( /sentinel/language/scope ) . If a variable is assigned within
7272the body of a for statement that isn't assigned in a parent scope,
7373that variable will only exist for the duration of the body execution.
74+ If the variable exists in the parent scope, assigning the variable a
75+ value in the body of a ` for ` statement updates it in the parent
76+ scope.
7477
7578Example:
7679
@@ -88,5 +91,5 @@ for list as value {
8891 a = 42
8992}
9093
91- print(a) // 18
94+ print(a) // 42
9295```
Original file line number Diff line number Diff line change @@ -71,6 +71,9 @@ The body of a `for` statement creates a new
7171[ scope] ( /sentinel/language/scope ) . If a variable is assigned within
7272the body of a for statement that isn't assigned in a parent scope,
7373that variable will only exist for the duration of the body execution.
74+ If the variable exists in the parent scope, assigning the variable a
75+ value in the body of a ` for ` statement updates it in the parent
76+ scope.
7477
7578Example:
7679
@@ -88,5 +91,5 @@ for list as value {
8891 a = 42
8992}
9093
91- print(a) // 18
94+ print(a) // 42
9295```
Original file line number Diff line number Diff line change @@ -71,6 +71,9 @@ The body of a `for` statement creates a new
7171[ scope] ( /sentinel/language/scope ) . If a variable is assigned within
7272the body of a for statement that isn't assigned in a parent scope,
7373that variable will only exist for the duration of the body execution.
74+ If the variable exists in the parent scope, assigning the variable a
75+ value in the body of a ` for ` statement updates it in the parent
76+ scope.
7477
7578Example:
7679
@@ -88,5 +91,5 @@ for list as value {
8891 a = 42
8992}
9093
91- print(a) // 18
94+ print(a) // 42
9295```
Original file line number Diff line number Diff line change @@ -71,6 +71,9 @@ The body of a `for` statement creates a new
7171[ scope] ( /sentinel/language/scope ) . If a variable is assigned within
7272the body of a for statement that isn't assigned in a parent scope,
7373that variable will only exist for the duration of the body execution.
74+ If the variable exists in the parent scope, assigning the variable a
75+ value in the body of a ` for ` statement updates it in the parent
76+ scope.
7477
7578Example:
7679
@@ -88,5 +91,5 @@ for list as value {
8891 a = 42
8992}
9093
91- print(a) // 18
94+ print(a) // 42
9295```
Original file line number Diff line number Diff line change @@ -71,6 +71,9 @@ The body of a `for` statement creates a new
7171[ scope] ( /sentinel/language/scope ) . If a variable is assigned within
7272the body of a for statement that isn't assigned in a parent scope,
7373that variable will only exist for the duration of the body execution.
74+ If the variable exists in the parent scope, assigning the variable a
75+ value in the body of a ` for ` statement updates it in the parent
76+ scope.
7477
7578Example:
7679
@@ -88,5 +91,5 @@ for list as value {
8891 a = 42
8992}
9093
91- print(a) // 18
94+ print(a) // 42
9295```
You can’t perform that action at this time.
0 commit comments