Skip to content

Commit 59d3196

Browse files
authored
Remove redundant "if you allow null safety" (#7070)
since it's now required --- - [x] I’ve reviewed the contributor guide and applied the relevant portions to this PR. - [x] This PR doesn't contain automatically generated corrections or text (Grammarly, LLMs, and similar). - [x] This PR follows the [Google Developer Documentation Style Guidelines](https://developers.google.com/style) — for example, it doesn't use _i.e._ or _e.g._, and it avoids _I_ and _we_ (first person). - [x] This PR uses [semantic line breaks](https://github.com/dart-lang/site-shared/blob/main/doc/writing-for-dart-and-flutter-websites.md#semantic-line-breaks) of 80 characters or fewer.
1 parent f5b2e86 commit 59d3196

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/content/language/index.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -523,8 +523,7 @@ keep these facts and concepts in mind:
523523
because Dart can infer types. In `var number = 101`, `number`
524524
is inferred to be of type `int`.
525525

526-
- If you enable [null safety][ns],
527-
variables can't contain `null` unless you say they can.
526+
- Variables can't contain `null` unless you say they can.
528527
You can make a variable nullable by
529528
putting a question mark (`?`) at the end of its type.
530529
For example, a variable of type `int?` might be an integer,

0 commit comments

Comments
 (0)