Skip to content

Commit

Permalink
Typos
Browse files Browse the repository at this point in the history
  • Loading branch information
vbrazo committed Nov 3, 2019
1 parent 96db2eb commit c8969d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/json.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ struct Customer {

fn main() {
customers_string := '[{ "first_name": "Vitor", "last_name": "Oliveira", "hometown": "Rio de Janeiro" }, { "first_name": "Don", "last_name": "Nisnoni", "hometown": "Kupang" }]'
customer := json.decode([]Customer, customer_string) or {
customers := json.decode([]Customer, customers_string) or {
eprintln('Failed to parse json')
return
}
Expand Down

0 comments on commit c8969d8

Please sign in to comment.