File tree 9 files changed +15
-13
lines changed
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
125
125
/// method that modifies the buffer directory or provides the caller with bytes that can be modifies
126
126
/// results in those bytes being marked as used by the buffer.
127
127
pub 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
129
129
/// function and then clear the buffer.
130
130
fn input ( & mut self , input : & [ u8 ] , func : & fn ( & [ u8 ] ) ) ;
131
131
Original file line number Diff line number Diff line change @@ -47,18 +47,18 @@ pub trait Digest {
47
47
fn output_bits ( & self ) -> uint ;
48
48
49
49
/**
50
- * Convenience functon that feeds a string into a digest
50
+ * Convenience function that feeds a string into a digest.
51
51
*
52
52
* # Arguments
53
53
*
54
- * * in The string to feed into the digest
54
+ * * `input` The string to feed into the digest
55
55
*/
56
56
fn input_str ( & mut self , input : & str ) {
57
57
self . input ( input. as_bytes ( ) ) ;
58
58
}
59
59
60
60
/**
61
- * Convenience functon that retrieves the result of a digest as a
61
+ * Convenience function that retrieves the result of a digest as a
62
62
* ~str in hexadecimal format.
63
63
*/
64
64
fn result_str ( & mut self ) -> ~str {
Original file line number Diff line number Diff line change @@ -156,7 +156,7 @@ impl FileInput {
156
156
/**
157
157
Create a `FileInput` object from a vec of files. An empty
158
158
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`.
160
160
*/
161
161
pub fn from_vec ( files : ~[ Option < Path > ] ) -> FileInput {
162
162
FileInput :: from_vec_raw (
Original file line number Diff line number Diff line change @@ -157,7 +157,7 @@ impl Terminal {
157
157
/// If the color is a bright color, but the terminal only supports 8 colors,
158
158
/// the corresponding normal color will be used instead.
159
159
///
160
- /// Rturns true if the color was set, false otherwise.
160
+ /// Returns true if the color was set, false otherwise.
161
161
pub fn bg ( & self , color : color:: Color ) -> bool {
162
162
let color = self . dim_if_necessary ( color) ;
163
163
if self . num_colors > color {
Original file line number Diff line number Diff line change @@ -1462,7 +1462,7 @@ pub trait WriterUtil {
1462
1462
/// (8 bytes).
1463
1463
fn write_le_f64 ( & self , f : f64 ) ;
1464
1464
1465
- /// Write a litten -endian IEEE754 single-precision floating-point
1465
+ /// Write a little -endian IEEE754 single-precision floating-point
1466
1466
/// (4 bytes).
1467
1467
fn write_le_f32 ( & self , f : f32 ) ;
1468
1468
Original file line number Diff line number Diff line change @@ -511,7 +511,8 @@ pub trait Iterator<A> {
511
511
i
512
512
}
513
513
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.
515
516
///
516
517
/// # Example
517
518
///
@@ -534,7 +535,8 @@ pub trait Iterator<A> {
534
535
} ) . map_move ( |( x, _) | x)
535
536
}
536
537
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.
538
540
///
539
541
/// # Example
540
542
///
@@ -1541,7 +1543,7 @@ pub struct Repeat<A> {
1541
1543
}
1542
1544
1543
1545
impl < 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`.
1545
1547
#[ inline]
1546
1548
pub fn new ( elt : A ) -> Repeat < A > {
1547
1549
Repeat { element : elt}
Original file line number Diff line number Diff line change @@ -262,7 +262,7 @@ pub trait WriterByteConversions {
262
262
/// (8 bytes).
263
263
fn write_le_f64 ( & mut self , f : f64 ) ;
264
264
265
- /// Write a litten -endian IEEE754 single-precision floating-point
265
+ /// Write a little -endian IEEE754 single-precision floating-point
266
266
/// (4 bytes).
267
267
fn write_le_f32 ( & mut self , f : f32 ) ;
268
268
Original file line number Diff line number Diff line change @@ -430,7 +430,7 @@ pub trait Reader {
430
430
/// println(reader.read_line());
431
431
/// }
432
432
///
433
- /// # Failue
433
+ /// # Failure
434
434
///
435
435
/// Returns `true` on failure.
436
436
fn eof ( & mut self ) -> bool ;
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ pub trait ToStr {
31
31
32
32
/// Trait for converting a type to a string, consuming it in the process.
33
33
pub trait ToStrConsume {
34
- /// Cosume and convert to a string.
34
+ /// Consume and convert to a string.
35
35
fn into_str ( self ) -> ~str ;
36
36
}
37
37
You can’t perform that action at this time.
0 commit comments