extra::json: add documentation and examples
This commit is contained in:
parent
339946cf2f
commit
aeb541674c
1 changed files with 1 additions and 1 deletions
|
|
@ -70,7 +70,7 @@ use extra::serialize::Encodable;
|
|||
|
||||
fn main() {
|
||||
let to_encode_object = TestStruct{data_str:~"example of string to encode"};
|
||||
let mut m = io::mem::MemWriter::new();
|
||||
let mut m = io::MemWriter::new();
|
||||
{
|
||||
let mut encoder = json::Encoder::new(&mut m as &mut std::io::Writer);
|
||||
to_encode_object.encode(&mut encoder);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue