diff options
| author | Caitlin Potter <snowball@defpixel.com> | 2013-05-30 00:40:43 -0400 |
|---|---|---|
| committer | Caitlin Potter <snowball@defpixel.com> | 2013-05-30 00:51:16 -0400 |
| commit | bfe141c4e1a8c19072f4c3e0ea5450961253617b (patch) | |
| tree | cf92b22e9bf8669b28afada2e5a3ba6718dd6c21 | |
| parent | 2d28d645422c1617be58c8ca7ad9a457264ca850 (diff) | |
| download | rust-bfe141c4e1a8c19072f4c3e0ea5450961253617b.tar.gz rust-bfe141c4e1a8c19072f4c3e0ea5450961253617b.zip | |
Fixes #6824 - Correct scan_number() grammar
Show `int_suffix_size` to appear 0 or 1 times Show `exponent | . dec_lit` to appear 0 or 1 times, to show why `3f;` is a valid number
| -rw-r--r-- | doc/rust.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/rust.md b/doc/rust.md index 9839e9e8afd..1cdb56e246f 100644 --- a/doc/rust.md +++ b/doc/rust.md @@ -301,10 +301,10 @@ num_lit : nonzero_dec [ dec_digit | '_' ] * num_suffix ? num_suffix : int_suffix | float_suffix ; int_suffix : 'u' int_suffix_size ? - | 'i' int_suffix_size ; + | 'i' int_suffix_size ? ; int_suffix_size : [ '8' | '1' '6' | '3' '2' | '6' '4' ] ; -float_suffix : [ exponent | '.' dec_lit exponent ? ] float_suffix_ty ? ; +float_suffix : [ exponent | '.' dec_lit exponent ? ] ? float_suffix_ty ? ; float_suffix_ty : 'f' [ '3' '2' | '6' '4' ] ; exponent : ['E' | 'e'] ['-' | '+' ] ? dec_lit ; dec_lit : [ dec_digit | '_' ] + ; |
