@@ -55,14 +55,14 @@ pub mod rustrt {
5555* to the `seek` method defined on the `Reader` trait.
5656*
5757* There are three seek styles:
58- *
58+ *
5959* 1. `SeekSet` means that the new position should become our position.
6060* 2. `SeekCur` means that we should seek from the current position.
6161* 3. `SeekEnd` means that we should seek from the end.
6262*
6363* # Examples
64- *
65- * None right now.
64+ *
65+ * None right now.
6666*/
6767pub enum SeekStyle { SeekSet , SeekEnd , SeekCur , }
6868
@@ -71,8 +71,8 @@ pub enum SeekStyle { SeekSet, SeekEnd, SeekCur, }
7171* The core Reader trait. All readers must implement this trait.
7272*
7373* # Examples
74- *
75- * None right now.
74+ *
75+ * None right now.
7676*/
7777pub trait Reader {
7878 // FIXME (#2004): Seekable really should be orthogonal.
@@ -82,14 +82,14 @@ pub trait Reader {
8282 * Reads bytes and puts them into `bytes`. Returns the number of
8383 * bytes read.
8484 *
85- * The number of bytes to be read is `len` or the end of the file,
85+ * The number of bytes to be read is `len` or the end of the file,
8686 * whichever comes first.
8787 *
8888 * The buffer must be at least `len` bytes long.
8989 *
9090 * # Examples
91- *
92- * None right now.
91+ *
92+ * None right now.
9393 */
9494 fn read ( & self , bytes : & mut [ u8 ] , len : uint ) -> uint ;
9595
@@ -99,38 +99,38 @@ pub trait Reader {
9999 * In the case of an EOF or an error, returns a negative value.
100100 *
101101 * # Examples
102- *
103- * None right now.
102+ *
103+ * None right now.
104104 */
105105 fn read_byte ( & self ) -> int ;
106106
107107 /**
108108 * Returns a boolean value: are we currently at EOF?
109109 *
110110 * # Examples
111- *
112- * None right now.
111+ *
112+ * None right now.
113113 */
114114 fn eof ( & self ) -> bool ;
115115
116116 /**
117117 * Seek to a given `position` in the stream.
118- *
118+ *
119119 * Takes an optional SeekStyle, which affects how we seek from the
120120 * position. See `SeekStyle` docs for more details.
121121 *
122122 * # Examples
123- *
124- * None right now.
123+ *
124+ * None right now.
125125 */
126126 fn seek ( & self , position : int , style : SeekStyle ) ;
127127
128128 /**
129129 * Returns the current position within the stream.
130130 *
131131 * # Examples
132- *
133- * None right now.
132+ *
133+ * None right now.
134134 */
135135 fn tell ( & self ) -> uint ;
136136}
0 commit comments