1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

final linguist test

This commit is contained in:
Alexander Medvednikov 2019-08-30 13:57:53 +03:00 committed by GitHub
parent e3389e8ec1
commit dae4c4b83f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,7 +9,7 @@ mut:
fn main() { fn main() {
s := '[{ "name":"Frodo", "age":25}, {"name":"Bobby", "age":10}]' s := '[{ "name":"Frodo", "age":25}, {"name":"Bobby", "age":10}]'
users := json.decode( []User, s) or { users := json.decode([]User, s) or {
eprintln('Failed to parse json') eprintln('Failed to parse json')
return return
} }