Skip to content

Commit 39c2508

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 3c37221 commit 39c2508

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

core/src/num/dec2flt/mod.rs

-1
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)