Skip to content

Commit f4ad0d0

Browse files
authored
Merge pull request #328 from jost-s/docs/update-deserialize-example-to-use-from-slice
2 parents 941441f + b25b588 commit f4ad0d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rmp-serde/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
//! buf
1313
//! );
1414
//!
15-
//! assert_eq!((42, "the Answer"), rmp_serde::from_read_ref(&buf).unwrap());
15+
//! assert_eq!((42, "the Answer"), rmp_serde::from_slice(&buf).unwrap());
1616
//! ```
1717
//!
1818
//! # Type-based Serialization and Deserialization

0 commit comments

Comments
 (0)