about summary refs log tree commit diff
path: root/src/libextra
diff options
context:
space:
mode:
authorHuon Wilson <dbau.pp+github@gmail.com>2013-08-18 08:28:04 +1000
committerHuon Wilson <dbau.pp+github@gmail.com>2013-08-18 08:28:04 +1000
commit6440343a6c26fca12ef2e323fa7738dce9da1986 (patch)
tree1fa6106fcc49f2a567a36644a8a6c3c32b57f21c /src/libextra
parent72fd02d93985bc9be359d736eec0484cb51a8b3f (diff)
downloadrust-6440343a6c26fca12ef2e323fa7738dce9da1986.tar.gz
rust-6440343a6c26fca12ef2e323fa7738dce9da1986.zip
More spelling corrections.
Diffstat (limited to 'src/libextra')
-rw-r--r--src/libextra/crypto/cryptoutil.rs2
-rw-r--r--src/libextra/crypto/digest.rs6
-rw-r--r--src/libextra/fileinput.rs2
-rw-r--r--src/libextra/term.rs2
4 files changed, 6 insertions, 6 deletions
diff --git a/src/libextra/crypto/cryptoutil.rs b/src/libextra/crypto/cryptoutil.rs
index 43e3b5c89af..30159d3dc5d 100644
--- a/src/libextra/crypto/cryptoutil.rs
+++ b/src/libextra/crypto/cryptoutil.rs
@@ -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]));
 
diff --git a/src/libextra/crypto/digest.rs b/src/libextra/crypto/digest.rs
index 217f5b0a417..c7f228af332 100644
--- a/src/libextra/crypto/digest.rs
+++ b/src/libextra/crypto/digest.rs
@@ -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 {
diff --git a/src/libextra/fileinput.rs b/src/libextra/fileinput.rs
index e268e83bf3f..3b4fad3eaa7 100644
--- a/src/libextra/fileinput.rs
+++ b/src/libextra/fileinput.rs
@@ -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(
diff --git a/src/libextra/term.rs b/src/libextra/term.rs
index d0412b8954d..d8eb3cfa500 100644
--- a/src/libextra/term.rs
+++ b/src/libextra/term.rs
@@ -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 {