From b7f30d7f82ada57cdf279fe6aae3ad4585462a01 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Fri, 29 Jul 2016 09:48:47 -0700 Subject: [PATCH] Use build() instead of unwrap() for the Builders Fixes #429. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);