Skip to content

Commit

Permalink
Merge pull request #752 from SamuelQZQ/patch-2
Browse files Browse the repository at this point in the history
Fix method document in de.rs
  • Loading branch information
dtolnay authored Feb 11, 2021
2 parents 8d78020 + cf1118d commit 64dd1e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/de.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ where
/// Typically it is more convenient to use one of these methods instead:
///
/// - Deserializer::from_str
/// - Deserializer::from_bytes
/// - Deserializer::from_slice
/// - Deserializer::from_reader
pub fn new(read: R) -> Self {
Deserializer {
Expand Down Expand Up @@ -2250,7 +2250,7 @@ where
/// Typically it is more convenient to use one of these methods instead:
///
/// - Deserializer::from_str(...).into_iter()
/// - Deserializer::from_bytes(...).into_iter()
/// - Deserializer::from_slice(...).into_iter()
/// - Deserializer::from_reader(...).into_iter()
pub fn new(read: R) -> Self {
let offset = read.byte_offset();
Expand Down

0 comments on commit 64dd1e0

Please sign in to comment.