Skip to content
This repository has been archived by the owner on Oct 8, 2019. It is now read-only.

Commit

Permalink
Spelling sweep, and MIR -> pack.
Browse files Browse the repository at this point in the history
  • Loading branch information
vext01 committed Feb 14, 2019
1 parent 71386c4 commit a5346f7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/decode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ use serde::Deserialize;
use std::io::Read;

/// The pack decoder.
/// Offfers a simple iterator interface to serialised packs.
/// Offers a simple iterator interface to serialised packs.
pub struct Decoder<'a> {
deser: Deserializer<ReadReader<&'a mut dyn Read>>,
}
Expand Down
4 changes: 2 additions & 2 deletions src/encode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ pub struct Encoder<'a> {
}

impl<'a> Encoder<'a> {
/// Creates a new encoder which serliases `Pack` into the writable `write_into`.
/// Creates a new encoder which serialises `Pack` into the writable `write_into`.
pub fn from(write_into: &'a mut dyn Write) -> Self {
let ser = Serializer::new(write_into);
Self { ser, done: false }
Expand All @@ -33,7 +33,7 @@ impl<'a> Encoder<'a> {
Some(md).serialize(&mut self.ser)
}

/// Finalises the serialisation and writes a sentinal.
/// Finalises the serialisation and writes a sentinel.
pub fn done(mut self) -> Result<(), encode::Error> {
None::<Option<Pack>>.serialize(&mut self.ser)?;
self.done = true;
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ mod tests {
vec![mir1, mir2]
}

// Check serialising and deserialising works for zero MIRs.
// Check serialising and deserialising works for zero packs.
#[test]
fn test_empty() {
let mut curs = get_curs();
Expand Down

0 comments on commit a5346f7

Please sign in to comment.