1
Fork 0

doc: Fix extraneous as_slice()'s in docstrings

This commit is contained in:
Richo Healey 2015-03-07 22:30:12 -08:00
parent 061d84399e
commit 7981aa6ac9
7 changed files with 24 additions and 24 deletions

View file

@ -188,7 +188,7 @@
//! let json_str: String = json_obj.to_string();
//!
//! // Deserialize like before
//! let decoded: TestStruct = json::decode(json_str.as_slice()).unwrap();
//! let decoded: TestStruct = json::decode(json_str)).unwrap();
//! }
//! ```