Skip to content

Commit c685f95

Browse files
authored
Corrected EBNF grammar for from_str
Previously, the `Number` part of the EBNF grammar had an option for `'.' Digit*`, which would include the string "." (a single decimal point). This is not valid, and does not return an Ok as stated. The corrected version removes this, and still allows for the `'.' Digit+` case with the already existing `Digit* '.' Digit+` case.
1 parent b47a6b3 commit c685f95

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

core/src/num/dec2flt/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,6 @@ macro_rules! from_str_float_impl {
126126
/// ```txt
127127
/// Float ::= Sign? ( 'inf' | 'infinity' | 'nan' | Number )
128128
/// Number ::= ( Digit+ |
129-
/// '.' Digit* |
130129
/// Digit+ '.' Digit* |
131130
/// Digit* '.' Digit+ ) Exp?
132131
/// Exp ::= 'e' Sign? Digit+

0 commit comments

Comments
 (0)