mirror of
https://github.com/vlang/v.git
synced 2025-09-13 22:42:26 +03:00
x.json2: cleanup comments (#22595)
This commit is contained in:
parent
e85905ddc5
commit
14ca0f533f
2 changed files with 1 additions and 2 deletions
|
@ -749,7 +749,6 @@ fn (mut decoder Decoder) decode_value[T](mut val T) ! {
|
||||||
|
|
||||||
// get_value_kind returns the kind of a JSON value.
|
// get_value_kind returns the kind of a JSON value.
|
||||||
fn get_value_kind(value u8) ValueKind {
|
fn get_value_kind(value u8) ValueKind {
|
||||||
// value := *val
|
|
||||||
if value == u8(`"`) {
|
if value == u8(`"`) {
|
||||||
return .string_
|
return .string_
|
||||||
} else if value == u8(`t`) || value == u8(`f`) {
|
} else if value == u8(`t`) || value == u8(`f`) {
|
||||||
|
|
|
@ -146,7 +146,7 @@ fn (e &Encoder) encode_map[T](value T, level int, mut buf []u8) ! {
|
||||||
}
|
}
|
||||||
idx++
|
idx++
|
||||||
}
|
}
|
||||||
// e.encode_newline(level, mut buf)!
|
|
||||||
e.encode_newline(level - 1, mut buf)!
|
e.encode_newline(level - 1, mut buf)!
|
||||||
buf << curly_close_rune
|
buf << curly_close_rune
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue