diff options
author | Daniel Kahn Gillmor <dkg@fifthhorseman.net> | 2019-10-27 22:45:01 -0400 |
---|---|---|
committer | Daniel Kahn Gillmor <dkg@fifthhorseman.net> | 2019-10-27 22:45:01 -0400 |
commit | d3336f34c0d953b6cfd6cc9d4757fd31c1ac31ae (patch) | |
tree | aac95b974bd51187efc572a21fb28dd55b0b810e /buffered-reader | |
parent | 6b1c86756c1a3945fec84e3703e991ef1ee99fee (diff) |
Fix more spelling errors caught by codespell
Signed-off-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
Diffstat (limited to 'buffered-reader')
-rw-r--r-- | buffered-reader/src/generic.rs | 2 | ||||
-rw-r--r-- | buffered-reader/src/lib.rs | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/buffered-reader/src/generic.rs b/buffered-reader/src/generic.rs index 8c29bb09..67a3eeee 100644 --- a/buffered-reader/src/generic.rs +++ b/buffered-reader/src/generic.rs @@ -158,7 +158,7 @@ impl<T: io::Read, C> Generic<T, C> { } if self.error.is_some() { - // An error occured. If we have enough data to fulfill + // An error occurred. If we have enough data to fulfill // the caller's request, then delay returning the error. if let Some(ref buffer) = self.buffer { if amount > buffer.len() { diff --git a/buffered-reader/src/lib.rs b/buffered-reader/src/lib.rs index f3099343..578c2cf7 100644 --- a/buffered-reader/src/lib.rs +++ b/buffered-reader/src/lib.rs @@ -31,7 +31,7 @@ //! # Details //! //! Because the [`BufRead`] trait doesn't provide a mechanism for the -//! user to size the interal buffer, a parser can't generally be sure +//! user to size the internal buffer, a parser can't generally be sure //! that the internal buffer will be large enough to allow it to work //! with all data in place. //! @@ -164,7 +164,7 @@ //! lazily. This is done by implementing the `BufferedReader` trait //! for the framing parser, and stacking the `BufferedReader`s. //! -//! For our next example, we rewrite the previous code asssuming that +//! For our next example, we rewrite the previous code assuming that //! the object parser reads from a `BufferedReader` object. Since the //! framing parser is really just a limit on the object's size, we //! don't need to implement a special `BufferedReader`, but can use a |