From 091b3be1c76aed46c099415c6e0cc3fdfa0f00b9 Mon Sep 17 00:00:00 2001 From: Colin Snover Date: Sun, 18 Sep 2022 17:01:11 -0500 Subject: [PATCH] Fix typos in BinWrite docs --- binrw/src/binwrite/mod.rs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/binrw/src/binwrite/mod.rs b/binrw/src/binwrite/mod.rs index e8f3704d..a6c7c7ca 100644 --- a/binrw/src/binwrite/mod.rs +++ b/binrw/src/binwrite/mod.rs @@ -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 /// @@ -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 /// @@ -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 /// @@ -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 /// @@ -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 /// @@ -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 @@ -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 @@ -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