mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
toml: make value of +nan/-nan decode to nan (#12542)
This commit is contained in:
@@ -157,8 +157,9 @@ pub fn (b Bool) str() string {
|
||||
// Number can be integers, floats, infinite, NaN - they can have exponents (`5e2`) and be sign prefixed (`+2`).
|
||||
pub struct Number {
|
||||
pub:
|
||||
pos token.Position
|
||||
pub mut:
|
||||
text string
|
||||
pos token.Position
|
||||
}
|
||||
|
||||
// str returns the `string` representation of the `Number` type.
|
||||
|
||||
Reference in New Issue
Block a user