about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorJoseph Crail <jbcrail@gmail.com>2014-08-01 19:40:21 -0400
committerJoseph Crail <jbcrail@gmail.com>2014-08-01 19:42:52 -0400
commitad06dfe496e4e1abbc65268a58275ca2b483def5 (patch)
tree35b592cbfd3eb0b33f1dd07e3a281890f19b6cdd /src/libstd
parent292caefb26c7f99a064a1ed6a8ba37ec5375e88e (diff)
downloadrust-ad06dfe496e4e1abbc65268a58275ca2b483def5.tar.gz
rust-ad06dfe496e4e1abbc65268a58275ca2b483def5.zip
Fix misspelled comments.
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/collections/hashmap.rs2
-rw-r--r--src/libstd/io/net/addrinfo.rs2
-rw-r--r--src/libstd/os.rs2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/libstd/collections/hashmap.rs b/src/libstd/collections/hashmap.rs
index a569ee4a32a..e95a5305bc7 100644
--- a/src/libstd/collections/hashmap.rs
+++ b/src/libstd/collections/hashmap.rs
@@ -1937,7 +1937,7 @@ impl<T: Eq + Hash<S>, S, H: Hasher<S>> HashSet<T, H> {
     /// # Example
     ///
     /// This is a slightly silly example where we define the number's
-    /// parity as the equivilance class. It is important that the
+    /// parity as the equivalence class. It is important that the
     /// values hash the same, which is why we implement `Hash`.
     ///
     /// ```rust
diff --git a/src/libstd/io/net/addrinfo.rs b/src/libstd/io/net/addrinfo.rs
index 8d5fd2b99fd..771eb9e13e8 100644
--- a/src/libstd/io/net/addrinfo.rs
+++ b/src/libstd/io/net/addrinfo.rs
@@ -79,7 +79,7 @@ pub fn get_host_addresses(host: &str) -> IoResult<Vec<IpAddr>> {
     lookup(Some(host), None, None).map(|a| a.move_iter().map(|i| i.address.ip).collect())
 }
 
-/// Full-fleged resolution. This function will perform a synchronous call to
+/// Full-fledged resolution. This function will perform a synchronous call to
 /// getaddrinfo, controlled by the parameters
 ///
 /// # Arguments
diff --git a/src/libstd/os.rs b/src/libstd/os.rs
index 7fff510a60a..dfa691d1823 100644
--- a/src/libstd/os.rs
+++ b/src/libstd/os.rs
@@ -873,7 +873,7 @@ pub fn make_absolute(p: &Path) -> Path {
 ///
 /// let root = Path::new("/");
 /// assert!(os::change_dir(&root));
-/// println!("Succesfully changed working directory to {}!", root.display());
+/// println!("Successfully changed working directory to {}!", root.display());
 /// ```
 pub fn change_dir(p: &Path) -> bool {
     return chdir(p);