Skip to content

Commit c95267e

Browse files
Rollup merge of rust-lang#50791 - bstrie:null, r=QuietMisdreavus
Fix null exclusions in grammar docs The grammar documentation incorrectly says that comments, character literals, and string literals may not include null.
2 parents 77a4296 + ab4735e commit c95267e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/doc/grammar.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -116,9 +116,9 @@ as long as the identifier does _not_ occur in the set of [keywords](#keywords).
116116
Some productions are defined by exclusion of particular Unicode characters:
117117

118118
- `non_null` is any single Unicode character aside from `U+0000` (null)
119-
- `non_eol` is `non_null` restricted to exclude `U+000A` (`'\n'`)
120-
- `non_single_quote` is `non_null` restricted to exclude `U+0027` (`'`)
121-
- `non_double_quote` is `non_null` restricted to exclude `U+0022` (`"`)
119+
- `non_eol` is any single Unicode character aside from `U+000A` (`'\n'`)
120+
- `non_single_quote` is any single Unicode character aside from `U+0027` (`'`)
121+
- `non_double_quote` is any single Unicode character aside from `U+0022` (`"`)
122122

123123
## Comments
124124

0 commit comments

Comments
 (0)