We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e504518 + ff0b381 commit d5ea1beCopy full SHA for d5ea1be
docs/docs/reference/other-new-features/explicit-nulls.md
@@ -298,7 +298,7 @@ if s != null then
298
299
// s: String|Null
300
301
-assert(x != null)
+assert(s != null)
302
// s: String
303
```
304
@@ -382,7 +382,7 @@ while xs != null do
382
When dealing with local mutable variables, there are two questions:
383
384
1. Whether to track a local mutable variable during flow typing.
385
- We track a local mutable variable iff the variable is not assigned in a closure.
+ We track a local mutable variable if the variable is not assigned in a closure.
386
For example, in the following code `x` is assigned to by the closure `y`, so we do not
387
do flow typing on `x`.
388
0 commit comments