Skip to content

Commit

Permalink
Merge pull request scala#9250 from aldenml/doc-fix-nulls
Browse files Browse the repository at this point in the history
minor doc fix in explicit-nulls.md, fixed inside conditions example
  • Loading branch information
liufengyun authored Jun 27, 2020
2 parents d21db7f + afbf0c9 commit 50df4d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/docs/reference/other-new-features/explicit-nulls.md
Original file line number Diff line number Diff line change
Expand Up @@ -348,10 +348,10 @@ if (s != null && s.length > 0) { // s: String in `s.length > 0`
// s: String
}

if (s == null || s.length > 0) // s: String in `s.length > 0` {
if (s == null || s.length > 0) { // s: String in `s.length > 0`
// s: String|Null
} else {
// s: String|Null
// s: String
}
```

Expand Down

0 comments on commit 50df4d2

Please sign in to comment.