mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-14 14:03:58 +00:00
Add note about non-ASCII decimal_sep length
This commit is contained in:
parent
28a3ae7a8b
commit
32a5be52e1
1 changed files with 3 additions and 1 deletions
|
@ -56,7 +56,9 @@ where
|
|||
}
|
||||
}
|
||||
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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue