Skip to content

Commit cf1118d

Browse files
authored
Fix method document in de.rs
1 parent 8d78020 commit cf1118d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/de.rs

Lines changed: 2 additions & 2 deletions
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)