1
0
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:
Larpon
2021-11-23 15:23:16 +01:00
committed by GitHub
parent 12ffe04212
commit 49cd1b3d59
3 changed files with 13 additions and 3 deletions

View File

@@ -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.