Skip to content

Commit 64dd1e0

Browse files
authored
Merge pull request #752 from SamuelQZQ/patch-2
Fix method document in de.rs
2 parents 8d78020 + cf1118d commit 64dd1e0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/de.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ where
4141
/// Typically it is more convenient to use one of these methods instead:
4242
///
4343
/// - Deserializer::from_str
44-
/// - Deserializer::from_bytes
44+
/// - Deserializer::from_slice
4545
/// - Deserializer::from_reader
4646
pub fn new(read: R) -> Self {
4747
Deserializer {
@@ -2250,7 +2250,7 @@ where
22502250
/// Typically it is more convenient to use one of these methods instead:
22512251
///
22522252
/// - Deserializer::from_str(...).into_iter()
2253-
/// - Deserializer::from_bytes(...).into_iter()
2253+
/// - Deserializer::from_slice(...).into_iter()
22542254
/// - Deserializer::from_reader(...).into_iter()
22552255
pub fn new(read: R) -> Self {
22562256
let offset = read.byte_offset();

0 commit comments

Comments
 (0)