about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbstrie <ben.striegel@gmail.com>2018-05-16 01:16:01 +0000
committerbstrie <ben.striegel@gmail.com>2018-05-16 01:16:01 +0000
commitab4735e2ea4b000c27fbd1aeb56019da4720f62c (patch)
tree6f7344c87aeb79cf506535f1cb008497ca560d16
parentf0fdaba04ea7474cd1f66264ef4edb3485a95864 (diff)
downloadrust-ab4735e2ea4b000c27fbd1aeb56019da4720f62c.tar.gz
rust-ab4735e2ea4b000c27fbd1aeb56019da4720f62c.zip
Null exclusions in grammar docs
The grammar documentation incorrectly says that comments, character literals,
and string literals may not include null.
-rw-r--r--src/doc/grammar.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/doc/grammar.md b/src/doc/grammar.md
index 78432b6a965..3ba8b7ae687 100644
--- a/src/doc/grammar.md
+++ b/src/doc/grammar.md
@@ -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