diff --git a/README.md b/README.md index 7d8e8ea5..31b97bc1 100644 --- a/README.md +++ b/README.md @@ -68,8 +68,8 @@ fn main() { .insert("array", ArrayBuilder::new() .push(1) .push(2) - .unwrap()) - .unwrap(); + .build()) + .build(); let serialized = serde_json::to_string(&value).unwrap(); println!("serialized value: {:?}", serialized);