doc: Fix extraneous as_slice()'s in docstrings
This commit is contained in:
parent
061d84399e
commit
7981aa6ac9
7 changed files with 24 additions and 24 deletions
|
@ -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();
|
||||
//! }
|
||||
//! ```
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue