Skip to content

Commit

Permalink
remove trailing whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
steveklabnik committed Apr 3, 2013
1 parent a20d1ad commit 86d5ce5
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions src/libcore/io.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,14 @@ pub mod rustrt {
* to the `seek` method defined on the `Reader` trait.
*
* There are three seek styles:
*
*
* 1. `SeekSet` means that the new position should become our position.
* 2. `SeekCur` means that we should seek from the current position.
* 3. `SeekEnd` means that we should seek from the end.
*
* # Examples
*
* None right now.
*
* None right now.
*/
pub enum SeekStyle { SeekSet, SeekEnd, SeekCur, }

Expand All @@ -71,8 +71,8 @@ pub enum SeekStyle { SeekSet, SeekEnd, SeekCur, }
* The core Reader trait. All readers must implement this trait.
*
* # Examples
*
* None right now.
*
* None right now.
*/
pub trait Reader {
// FIXME (#2004): Seekable really should be orthogonal.
Expand All @@ -82,14 +82,14 @@ pub trait Reader {
* Reads bytes and puts them into `bytes`. Returns the number of
* bytes read.
*
* The number of bytes to be read is `len` or the end of the file,
* The number of bytes to be read is `len` or the end of the file,
* whichever comes first.
*
* The buffer must be at least `len` bytes long.
*
* # Examples
*
* None right now.
*
* None right now.
*/
fn read(&self, bytes: &mut [u8], len: uint) -> uint;

Expand All @@ -99,38 +99,38 @@ pub trait Reader {
* In the case of an EOF or an error, returns a negative value.
*
* # Examples
*
* None right now.
*
* None right now.
*/
fn read_byte(&self) -> int;

/**
* Returns a boolean value: are we currently at EOF?
*
* # Examples
*
* None right now.
*
* None right now.
*/
fn eof(&self) -> bool;

/**
* Seek to a given `position` in the stream.
*
*
* Takes an optional SeekStyle, which affects how we seek from the
* position. See `SeekStyle` docs for more details.
*
* # Examples
*
* None right now.
*
* None right now.
*/
fn seek(&self, position: int, style: SeekStyle);

/**
* Returns the current position within the stream.
*
* # Examples
*
* None right now.
*
* None right now.
*/
fn tell(&self) -> uint;
}
Expand Down

5 comments on commit 86d5ce5

@bors
Copy link
Contributor

@bors bors commented on 86d5ce5 Apr 3, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

saw approval from catamorphism
at steveklabnik@86d5ce5

@bors
Copy link
Contributor

@bors bors commented on 86d5ce5 Apr 3, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merging steveklabnik/rust/improve_io_docs = 86d5ce5 into auto

@bors
Copy link
Contributor

@bors bors commented on 86d5ce5 Apr 3, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

steveklabnik/rust/improve_io_docs = 86d5ce5 merged ok, testing candidate = cb16cd9

@bors
Copy link
Contributor

@bors bors commented on 86d5ce5 Apr 3, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bors
Copy link
Contributor

@bors bors commented on 86d5ce5 Apr 3, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fast-forwarding incoming to auto = cb16cd9

Please sign in to comment.