提交 aeb54167 编写于 作者: M musitdev

extra::json: add documentation and examples

上级 339946cf
......@@ -70,7 +70,7 @@ pub struct TestStruct {
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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册