Skip to content

Commit 50df4d2

Browse files
authored
Merge pull request #9250 from aldenml/doc-fix-nulls
minor doc fix in explicit-nulls.md, fixed inside conditions example
2 parents d21db7f + afbf0c9 commit 50df4d2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/docs/reference/other-new-features/explicit-nulls.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -348,10 +348,10 @@ if (s != null && s.length > 0) { // s: String in `s.length > 0`
348348
// s: String
349349
}
350350

351-
if (s == null || s.length > 0) // s: String in `s.length > 0` {
351+
if (s == null || s.length > 0) { // s: String in `s.length > 0`
352352
// s: String|Null
353353
} else {
354-
// s: String|Null
354+
// s: String
355355
}
356356
```
357357

0 commit comments

Comments
 (0)