Skip to content

Commit

Permalink
Rollup merge of rust-lang#50791 - bstrie:null, r=QuietMisdreavus
Browse files Browse the repository at this point in the history
Fix null exclusions in grammar docs

The grammar documentation incorrectly says that comments, character literals,
and string literals may not include null.
  • Loading branch information
Mark-Simulacrum authored May 17, 2018
2 parents 77a4296 + ab4735e commit c95267e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/doc/grammar.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,9 @@ as long as the identifier does _not_ occur in the set of [keywords](#keywords).
Some productions are defined by exclusion of particular Unicode characters:

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

## Comments

Expand Down

0 comments on commit c95267e

Please sign in to comment.