]> git.lizzy.rs Git - rust.git/commitdiff
Null exclusions in grammar docs
authorbstrie <ben.striegel@gmail.com>
Wed, 16 May 2018 01:16:01 +0000 (01:16 +0000)
committerbstrie <ben.striegel@gmail.com>
Wed, 16 May 2018 01:16:01 +0000 (01:16 +0000)
The grammar documentation incorrectly says that comments, character literals,
and string literals may not include null.

src/doc/grammar.md

index 78432b6a9659370cac1ae373770e795f0b8469b7..3ba8b7ae687c6d999479e5e8c549577d42796c8d 100644 (file)
@@ -121,9 +121,9 @@ that 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