Skip to content

Commit 339946c

Browse files
committed
extra::json: add documentation and examples
1 parent 1a8a901 commit 339946c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libextra/json.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ impl<'a> Encoder<'a> {
306306
let mut encoder = Encoder::new(&mut m as &mut io::Writer);
307307
to_encode_object.encode(&mut encoder);
308308
}
309-
m.inner()
309+
m.unwrap()
310310
}
311311

312312
/// Encode the specified struct into a json str

0 commit comments

Comments
 (0)