Skip to content

Commit

Permalink
json: replaced deprecated type byte with u8 (#19905)
Browse files Browse the repository at this point in the history
  • Loading branch information
kimshrier committed Nov 17, 2023
1 parent 439aeef commit 722fe40
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vlib/json/json_test.v
Expand Up @@ -486,11 +486,11 @@ fn test_encode_sumtype_defined_ahead() {
}

struct StByteArray {
ba []byte
ba []u8
}

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 {
Expand Down

0 comments on commit 722fe40

Please sign in to comment.