Skip to content

Commit

Permalink
docs(rmp-serde): update example to use from_slice
Browse files Browse the repository at this point in the history
  • Loading branch information
jost-s committed May 5, 2023
1 parent 941441f commit b25b588
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rmp-serde/src/lib.rs
Expand Up @@ -12,7 +12,7 @@
//! buf
//! );
//!
//! assert_eq!((42, "the Answer"), rmp_serde::from_read_ref(&buf).unwrap());
//! assert_eq!((42, "the Answer"), rmp_serde::from_slice(&buf).unwrap());
//! ```
//!
//! # Type-based Serialization and Deserialization
Expand Down

0 comments on commit b25b588

Please sign in to comment.