From 155c91e4c10925336ede2c40d87f54b9234b590a Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Sun, 16 Feb 2020 18:54:39 +0100 Subject: [PATCH] remove trailing whitespace --- nihav-core/src/io/bitreader.rs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/nihav-core/src/io/bitreader.rs b/nihav-core/src/io/bitreader.rs index 26b95a6..6c78622 100644 --- a/nihav-core/src/io/bitreader.rs +++ b/nihav-core/src/io/bitreader.rs @@ -1,6 +1,6 @@ //! Bitstream reader functionality. //! -//! Bitstream reader operates on `&[u8]` and allows to read bits from the slice in different modes. +//! Bitstream reader operates on `&[u8]` and allows to read bits from the slice in different modes. //! //! # Examples //! @@ -9,7 +9,7 @@ //! use nihav_core::io::bitreader::{BitReader,BitReaderMode}; //! //! # use nihav_core::io::bitreader::BitReaderResult; -//! # fn foo() -> BitReaderResult { +//! # fn foo() -> BitReaderResult { //! let bits: [u8; 4] = [ 42, 43, 44, 45 ]; //! let mut br = BitReader::new(&bits, BitReaderMode::BE); //! let value = br.read(17)?; @@ -22,7 +22,7 @@ //! use nihav_core::io::bitreader::{BitReader,BitReaderMode}; //! //! # use nihav_core::io::bitreader::BitReaderResult; -//! # fn foo() -> BitReaderResult<()> { +//! # fn foo() -> BitReaderResult<()> { //! let bits: [u8; 4] = [ 42, 43, 44, 45 ]; //! let mut br = BitReader::new(&bits, BitReaderMode::BE); //! let num_skip_bits = br.read(3)?; @@ -77,7 +77,7 @@ pub struct BitReader<'a> { impl<'a> BitReader<'a> { /// Constructs a new instance of bitstream reader. - /// + /// /// # Examples /// /// ``` @@ -210,7 +210,7 @@ impl<'a> BitReader<'a> { /// use nihav_core::io::bitreader::{BitReader,BitReaderMode}; /// /// # use nihav_core::io::bitreader::BitReaderResult; - /// # fn foo() -> BitReaderResult { + /// # fn foo() -> BitReaderResult { /// let bits: [u8; 4] = [ 42, 43, 44, 45 ]; /// let mut br = BitReader::new(&bits, BitReaderMode::BE); /// let value = br.read(17)?; @@ -270,7 +270,7 @@ impl<'a> BitReader<'a> { /// use nihav_core::io::bitreader::{BitReader,BitReaderMode}; /// /// # use nihav_core::io::bitreader::BitReaderResult; - /// # fn foo() -> BitReaderResult { + /// # fn foo() -> BitReaderResult { /// let bits: [u8; 4] = [ 42, 43, 44, 45 ]; /// let mut br = BitReader::new(&bits, BitReaderMode::BE); /// let peek_value = br.peek(8); // this should return 42 @@ -318,7 +318,7 @@ impl<'a> BitReader<'a> { /// use nihav_core::io::bitreader::{BitReader,BitReaderMode}; /// /// # use nihav_core::io::bitreader::BitReaderResult; - /// # fn foo() -> BitReaderResult { + /// # fn foo() -> BitReaderResult { /// let bits: [u8; 4] = [ 42, 43, 44, 45 ]; /// let mut br = BitReader::new(&bits, BitReaderMode::BE); /// br.seek(16)?; @@ -343,7 +343,7 @@ impl<'a> BitReader<'a> { /// use nihav_core::io::bitreader::{BitReader,BitReaderMode}; /// /// # use nihav_core::io::bitreader::BitReaderResult; - /// # fn foo() -> BitReaderResult<()> { + /// # fn foo() -> BitReaderResult<()> { /// let bits: [u8; 4] = [ 42, 43, 44, 45 ]; /// let mut br = BitReader::new(&bits, BitReaderMode::BE); /// br.skip(17)?; // now reader is at bit position 17 -- 2.39.5