mirror of
https://github.com/vlang/v.git
synced 2025-09-13 22:42:26 +03:00
json: replaced deprecated type byte with u8 (#19905)
This commit is contained in:
parent
439aeeffa0
commit
722fe40a2f
1 changed files with 2 additions and 2 deletions
|
@ -486,11 +486,11 @@ fn test_encode_sumtype_defined_ahead() {
|
||||||
}
|
}
|
||||||
|
|
||||||
struct StByteArray {
|
struct StByteArray {
|
||||||
ba []byte
|
ba []u8
|
||||||
}
|
}
|
||||||
|
|
||||||
fn test_byte_array() {
|
fn test_byte_array() {
|
||||||
assert json.encode(StByteArray{ ba: [byte(1), 2, 3, 4, 5] }) == '{"ba":[1,2,3,4,5]}'
|
assert json.encode(StByteArray{ ba: [u8(1), 2, 3, 4, 5] }) == '{"ba":[1,2,3,4,5]}'
|
||||||
}
|
}
|
||||||
|
|
||||||
struct Aa {
|
struct Aa {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue