More spelling corrections.
This commit is contained in:
parent
72fd02d939
commit
6440343a6c
9 changed files with 15 additions and 13 deletions
|
|
@ -1462,7 +1462,7 @@ pub trait WriterUtil {
|
|||
/// (8 bytes).
|
||||
fn write_le_f64(&self, f: f64);
|
||||
|
||||
/// Write a litten-endian IEEE754 single-precision floating-point
|
||||
/// Write a little-endian IEEE754 single-precision floating-point
|
||||
/// (4 bytes).
|
||||
fn write_le_f32(&self, f: f32);
|
||||
|
||||
|
|
|
|||
|
|
@ -511,7 +511,8 @@ pub trait Iterator<A> {
|
|||
i
|
||||
}
|
||||
|
||||
/// Return the element that gives the maximum value from the specfied function
|
||||
/// Return the element that gives the maximum value from the
|
||||
/// specified function.
|
||||
///
|
||||
/// # Example
|
||||
///
|
||||
|
|
@ -534,7 +535,8 @@ pub trait Iterator<A> {
|
|||
}).map_move(|(x, _)| x)
|
||||
}
|
||||
|
||||
/// Return the element that gives the minimum value from the specfied function
|
||||
/// Return the element that gives the minimum value from the
|
||||
/// specified function.
|
||||
///
|
||||
/// # Example
|
||||
///
|
||||
|
|
@ -1541,7 +1543,7 @@ pub struct Repeat<A> {
|
|||
}
|
||||
|
||||
impl<A: Clone> Repeat<A> {
|
||||
/// Create a new `Repeat` that enlessly repeats the element `elt`.
|
||||
/// Create a new `Repeat` that endlessly repeats the element `elt`.
|
||||
#[inline]
|
||||
pub fn new(elt: A) -> Repeat<A> {
|
||||
Repeat{element: elt}
|
||||
|
|
|
|||
|
|
@ -262,7 +262,7 @@ pub trait WriterByteConversions {
|
|||
/// (8 bytes).
|
||||
fn write_le_f64(&mut self, f: f64);
|
||||
|
||||
/// Write a litten-endian IEEE754 single-precision floating-point
|
||||
/// Write a little-endian IEEE754 single-precision floating-point
|
||||
/// (4 bytes).
|
||||
fn write_le_f32(&mut self, f: f32);
|
||||
|
||||
|
|
|
|||
|
|
@ -430,7 +430,7 @@ pub trait Reader {
|
|||
/// println(reader.read_line());
|
||||
/// }
|
||||
///
|
||||
/// # Failue
|
||||
/// # Failure
|
||||
///
|
||||
/// Returns `true` on failure.
|
||||
fn eof(&mut self) -> bool;
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ pub trait ToStr {
|
|||
|
||||
/// Trait for converting a type to a string, consuming it in the process.
|
||||
pub trait ToStrConsume {
|
||||
/// Cosume and convert to a string.
|
||||
/// Consume and convert to a string.
|
||||
fn into_str(self) -> ~str;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue