Skip to content

Commit

Permalink
Fix typos in BinWrite docs
Browse files Browse the repository at this point in the history
  • Loading branch information
csnover committed Nov 12, 2022
1 parent f4c5180 commit 091b3be
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions binrw/src/binwrite/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ pub trait BinWrite {
/// assert_eq!(writer.into_inner(), [1, 0xff, 0xff, 2, 0x34, 0x12]);
/// ```
pub trait BinWriterExt: Write + Seek + Sized {
/// Write `T` to the reader with the given byte order.
/// Write `T` to the writer with the given byte order.
///
/// # Errors
///
Expand All @@ -164,7 +164,7 @@ pub trait BinWriterExt: Write + Seek + Sized {
self.write_type_args(value, endian, T::Args::field_args())
}

/// Write `T` from the writer assuming big-endian byte order.
/// Write `T` to the writer assuming big-endian byte order.
///
/// # Errors
///
Expand All @@ -176,7 +176,7 @@ pub trait BinWriterExt: Write + Seek + Sized {
self.write_type(value, Endian::Big)
}

/// Write `T` from the writer assuming little-endian byte order.
/// Write `T` to the writer assuming little-endian byte order.
///
/// # Errors
///
Expand All @@ -188,7 +188,7 @@ pub trait BinWriterExt: Write + Seek + Sized {
self.write_type(value, Endian::Little)
}

/// Write `T` from the writer assuming native-endian byte order.
/// Write `T` to the writer assuming native-endian byte order.
///
/// # Errors
///
Expand All @@ -200,7 +200,7 @@ pub trait BinWriterExt: Write + Seek + Sized {
self.write_type(value, Endian::NATIVE)
}

/// Write `T` from the writer with the given byte order and arguments.
/// Write `T` to the writer with the given byte order and arguments.
///
/// # Errors
///
Expand All @@ -216,7 +216,7 @@ pub trait BinWriterExt: Write + Seek + Sized {
Ok(())
}

/// Write `T` from the writer, assuming big-endian byte order, using the
/// Write `T` to the writer, assuming big-endian byte order, using the
/// given arguments.
///
/// # Errors
Expand All @@ -226,7 +226,7 @@ pub trait BinWriterExt: Write + Seek + Sized {
self.write_type_args(value, Endian::Big, args)
}

/// Write `T` from the writer, assuming little-endian byte order, using the
/// Write `T` to the writer, assuming little-endian byte order, using the
/// given arguments.
///
/// # Errors
Expand All @@ -236,7 +236,7 @@ pub trait BinWriterExt: Write + Seek + Sized {
self.write_type_args(value, Endian::Little, args)
}

/// Write `T` from the writer, assuming native-endian byte order, using the
/// Write `T` to the writer, assuming native-endian byte order, using the
/// given arguments.
///
/// # Errors
Expand Down

0 comments on commit 091b3be

Please sign in to comment.