Skip to content

Commit

Permalink
json: update the example in the module's README.md (#19544)
Browse files Browse the repository at this point in the history
  • Loading branch information
felixmaker committed Oct 10, 2023
1 parent 192d7db commit 2ce209d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vlib/json/README.md
Expand Up @@ -26,7 +26,7 @@ fn main() {
//
s := json.encode(x)
println('Employee x: ${s}')
assert s == '{"name":"Peter","age":28,"salary":95000.5,"title":2}'
assert s == '{"name":"Peter","age":28,"salary":95000.5,"title":"worker"}'
//
y := json.decode(Employee, s)!
//
Expand Down

0 comments on commit 2ce209d

Please sign in to comment.