mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-01 21:21:15 -03:00
Add note about non-ASCII decimal_sep length
This commit is contained in:
@@ -56,7 +56,9 @@ fn parse_dec_float<I>(chars: I, decimal_sep: char, consumed: &mut usize) -> Opti
|
||||
}
|
||||
}
|
||||
let res = s.parse::<f64>().ok()?;
|
||||
*consumed = s.len(); // note this is the number of chars because only ASCII is recognized.
|
||||
// Note: this is the number of chars because only ASCII is recognized.
|
||||
// XXX: This assumption only holds if decimal_sep is also ASCII!
|
||||
*consumed = s.len();
|
||||
Some(res)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user