File tree Expand file tree Collapse file tree 9 files changed +15
-13
lines changed Expand file tree Collapse file tree 9 files changed +15
-13
lines changed Original file line number Diff line number Diff line change @@ -125,7 +125,7 @@ pub fn shift_add_check_overflow_tuple
125125/// method that modifies the buffer directory or provides the caller with bytes that can be modifies
126126/// results in those bytes being marked as used by the buffer.
127127pub trait FixedBuffer {
128- /// Input a vector of bytes. If the buffer becomes full, proccess it with the provided
128+ /// Input a vector of bytes. If the buffer becomes full, process it with the provided
129129 /// function and then clear the buffer.
130130 fn input ( & mut self , input : & [ u8 ] , func : & fn ( & [ u8 ] ) ) ;
131131
Original file line number Diff line number Diff line change @@ -47,18 +47,18 @@ pub trait Digest {
4747 fn output_bits ( & self ) -> uint ;
4848
4949 /**
50- * Convenience functon that feeds a string into a digest
50+ * Convenience function that feeds a string into a digest.
5151 *
5252 * # Arguments
5353 *
54- * * in The string to feed into the digest
54+ * * `input` The string to feed into the digest
5555 */
5656 fn input_str ( & mut self , input : & str ) {
5757 self . input ( input. as_bytes ( ) ) ;
5858 }
5959
6060 /**
61- * Convenience functon that retrieves the result of a digest as a
61+ * Convenience function that retrieves the result of a digest as a
6262 * ~str in hexadecimal format.
6363 */
6464 fn result_str ( & mut self ) -> ~str {
Original file line number Diff line number Diff line change @@ -156,7 +156,7 @@ impl FileInput {
156156 /**
157157 Create a `FileInput` object from a vec of files. An empty
158158 vec means lines are read from `stdin` (use `from_vec_raw` to stop
159- this behaviour). Any occurence of `None` represents `stdin`.
159+ this behaviour). Any occurrence of `None` represents `stdin`.
160160 */
161161 pub fn from_vec ( files : ~[ Option < Path > ] ) -> FileInput {
162162 FileInput :: from_vec_raw (
Original file line number Diff line number Diff line change @@ -157,7 +157,7 @@ impl Terminal {
157157 /// If the color is a bright color, but the terminal only supports 8 colors,
158158 /// the corresponding normal color will be used instead.
159159 ///
160- /// Rturns true if the color was set, false otherwise.
160+ /// Returns true if the color was set, false otherwise.
161161 pub fn bg ( & self , color : color:: Color ) -> bool {
162162 let color = self . dim_if_necessary ( color) ;
163163 if self . num_colors > color {
Original file line number Diff line number Diff line change @@ -1462,7 +1462,7 @@ pub trait WriterUtil {
14621462 /// (8 bytes).
14631463 fn write_le_f64 ( & self , f : f64 ) ;
14641464
1465- /// Write a litten -endian IEEE754 single-precision floating-point
1465+ /// Write a little -endian IEEE754 single-precision floating-point
14661466 /// (4 bytes).
14671467 fn write_le_f32 ( & self , f : f32 ) ;
14681468
Original file line number Diff line number Diff line change @@ -511,7 +511,8 @@ pub trait Iterator<A> {
511511 i
512512 }
513513
514- /// Return the element that gives the maximum value from the specfied function
514+ /// Return the element that gives the maximum value from the
515+ /// specified function.
515516 ///
516517 /// # Example
517518 ///
@@ -534,7 +535,8 @@ pub trait Iterator<A> {
534535 } ) . map_move ( |( x, _) | x)
535536 }
536537
537- /// Return the element that gives the minimum value from the specfied function
538+ /// Return the element that gives the minimum value from the
539+ /// specified function.
538540 ///
539541 /// # Example
540542 ///
@@ -1541,7 +1543,7 @@ pub struct Repeat<A> {
15411543}
15421544
15431545impl < A : Clone > Repeat < A > {
1544- /// Create a new `Repeat` that enlessly repeats the element `elt`.
1546+ /// Create a new `Repeat` that endlessly repeats the element `elt`.
15451547 #[ inline]
15461548 pub fn new ( elt : A ) -> Repeat < A > {
15471549 Repeat { element : elt}
Original file line number Diff line number Diff line change @@ -262,7 +262,7 @@ pub trait WriterByteConversions {
262262 /// (8 bytes).
263263 fn write_le_f64 ( & mut self , f : f64 ) ;
264264
265- /// Write a litten -endian IEEE754 single-precision floating-point
265+ /// Write a little -endian IEEE754 single-precision floating-point
266266 /// (4 bytes).
267267 fn write_le_f32 ( & mut self , f : f32 ) ;
268268
Original file line number Diff line number Diff line change @@ -430,7 +430,7 @@ pub trait Reader {
430430 /// println(reader.read_line());
431431 /// }
432432 ///
433- /// # Failue
433+ /// # Failure
434434 ///
435435 /// Returns `true` on failure.
436436 fn eof ( & mut self ) -> bool ;
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ pub trait ToStr {
3131
3232/// Trait for converting a type to a string, consuming it in the process.
3333pub trait ToStrConsume {
34- /// Cosume and convert to a string.
34+ /// Consume and convert to a string.
3535 fn into_str ( self ) -> ~str ;
3636}
3737
You can’t perform that action at this time.
0 commit comments