More spelling corrections.
This commit is contained in:
parent
72fd02d939
commit
6440343a6c
@ -125,7 +125,7 @@ pub fn shift_add_check_overflow_tuple
|
||||
/// method that modifies the buffer directory or provides the caller with bytes that can be modifies
|
||||
/// results in those bytes being marked as used by the buffer.
|
||||
pub trait FixedBuffer {
|
||||
/// Input a vector of bytes. If the buffer becomes full, proccess it with the provided
|
||||
/// Input a vector of bytes. If the buffer becomes full, process it with the provided
|
||||
/// function and then clear the buffer.
|
||||
fn input(&mut self, input: &[u8], func: &fn(&[u8]));
|
||||
|
||||
|
@ -47,18 +47,18 @@ pub trait Digest {
|
||||
fn output_bits(&self) -> uint;
|
||||
|
||||
/**
|
||||
* Convenience functon that feeds a string into a digest
|
||||
* Convenience function that feeds a string into a digest.
|
||||
*
|
||||
* # Arguments
|
||||
*
|
||||
* * in The string to feed into the digest
|
||||
* * `input` The string to feed into the digest
|
||||
*/
|
||||
fn input_str(&mut self, input: &str) {
|
||||
self.input(input.as_bytes());
|
||||
}
|
||||
|
||||
/**
|
||||
* Convenience functon that retrieves the result of a digest as a
|
||||
* Convenience function that retrieves the result of a digest as a
|
||||
* ~str in hexadecimal format.
|
||||
*/
|
||||
fn result_str(&mut self) -> ~str {
|
||||
|
@ -156,7 +156,7 @@ impl FileInput {
|
||||
/**
|
||||
Create a `FileInput` object from a vec of files. An empty
|
||||
vec means lines are read from `stdin` (use `from_vec_raw` to stop
|
||||
this behaviour). Any occurence of `None` represents `stdin`.
|
||||
this behaviour). Any occurrence of `None` represents `stdin`.
|
||||
*/
|
||||
pub fn from_vec(files: ~[Option<Path>]) -> FileInput {
|
||||
FileInput::from_vec_raw(
|
||||
|
@ -157,7 +157,7 @@ impl Terminal {
|
||||
/// If the color is a bright color, but the terminal only supports 8 colors,
|
||||
/// the corresponding normal color will be used instead.
|
||||
///
|
||||
/// Rturns true if the color was set, false otherwise.
|
||||
/// Returns true if the color was set, false otherwise.
|
||||
pub fn bg(&self, color: color::Color) -> bool {
|
||||
let color = self.dim_if_necessary(color);
|
||||
if self.num_colors > color {
|
||||
|
@ -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…
x
Reference in New Issue
Block a user