From 832c3e3cd725d85963c70cfdce26b13a5c0d508f Mon Sep 17 00:00:00 2001 From: Huon Wilson Date: Thu, 18 Dec 2014 15:10:37 -0800 Subject: [PATCH] Fix some spelling errors. --- src/libstd/ascii.rs | 4 ++-- src/libstd/comm/mod.rs | 4 ++-- src/libstd/io/net/ip.rs | 6 +++--- src/libstd/io/net/tcp.rs | 2 +- src/libstd/io/net/udp.rs | 2 +- src/libstd/sync/rwlock.rs | 2 +- src/libstd/thread_local/scoped.rs | 2 +- 7 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/libstd/ascii.rs b/src/libstd/ascii.rs index 2c49beca98d..6c213555ce4 100644 --- a/src/libstd/ascii.rs +++ b/src/libstd/ascii.rs @@ -39,7 +39,7 @@ impl Ascii { self.chr } - /// Deprecated: use `as_byte` isntead. + /// Deprecated: use `as_byte` instead. #[deprecated = "use as_byte"] pub fn to_byte(self) -> u8 { self.as_byte() @@ -52,7 +52,7 @@ impl Ascii { self.chr as char } - /// Deprecated: use `as_char` isntead. + /// Deprecated: use `as_char` instead. #[deprecated = "use as_char"] pub fn to_char(self) -> char { self.as_char() diff --git a/src/libstd/comm/mod.rs b/src/libstd/comm/mod.rs index 55f5662dbd8..7352cdfbfe7 100644 --- a/src/libstd/comm/mod.rs +++ b/src/libstd/comm/mod.rs @@ -547,7 +547,7 @@ impl Sender { /// so it is possible for a send to succeed (the other end is alive), but /// then the other end could immediately disconnect. /// - /// The purpose of this functionality is to propagate panicks among tasks. + /// The purpose of this functionality is to propagate panics among tasks. /// If a panic is not desired, then consider using the `send_opt` method #[experimental = "this function is being considered candidate for removal \ to adhere to the general guidelines of rust"] @@ -790,7 +790,7 @@ impl Receiver { /// /// Similar to channels, this method will trigger a task panic if the /// other end of the channel has hung up (been deallocated). The purpose of - /// this is to propagate panicks among tasks. + /// this is to propagate panics among tasks. /// /// If a panic is not desired, then there are two options: /// diff --git a/src/libstd/io/net/ip.rs b/src/libstd/io/net/ip.rs index 89a649d55bd..add986387da 100644 --- a/src/libstd/io/net/ip.rs +++ b/src/libstd/io/net/ip.rs @@ -383,8 +383,8 @@ impl FromStr for SocketAddr { /// expected by its `FromStr` implementation or a string like `:` pair /// where `` is a `u16` value. /// -/// For the former, `to_socker_addr_all` returns a vector with a single element corresponding -/// to that socker address. +/// For the former, `to_socket_addr_all` returns a vector with a single element corresponding +/// to that socket address. /// /// For the latter, it tries to resolve the host name and returns a vector of all IP addresses /// for the host name, each joined with the port. @@ -443,7 +443,7 @@ pub trait ToSocketAddr { /// Converts this object to all available socket address values. /// - /// Some values like host name string naturally corrrespond to multiple IP addresses. + /// Some values like host name string naturally correspond to multiple IP addresses. /// This method tries to return all available addresses corresponding to this object. /// /// By default this method delegates to `to_socket_addr` method, creating a singleton diff --git a/src/libstd/io/net/tcp.rs b/src/libstd/io/net/tcp.rs index 6bc952f30af..6adb5387f2e 100644 --- a/src/libstd/io/net/tcp.rs +++ b/src/libstd/io/net/tcp.rs @@ -319,7 +319,7 @@ impl TcpListener { /// to this listener. The port allocated can be queried via the /// `socket_name` function. /// - /// The address type can be any implementor of `ToSocketAddr` trait. See its + /// The address type can be any implementer of `ToSocketAddr` trait. See its /// documentation for concrete examples. pub fn bind(addr: A) -> IoResult { super::with_addresses(addr, |addr| { diff --git a/src/libstd/io/net/udp.rs b/src/libstd/io/net/udp.rs index ce7e5ca5f5e..f462143faf4 100644 --- a/src/libstd/io/net/udp.rs +++ b/src/libstd/io/net/udp.rs @@ -82,7 +82,7 @@ impl UdpSocket { /// Sends data on the socket to the given address. Returns nothing on /// success. /// - /// Address type can be any implementor of `ToSocketAddr` trait. See its + /// Address type can be any implementer of `ToSocketAddr` trait. See its /// documentation for concrete examples. pub fn send_to(&mut self, buf: &[u8], addr: A) -> IoResult<()> { super::with_addresses(addr, |addr| self.inner.send_to(buf, addr)) diff --git a/src/libstd/sync/rwlock.rs b/src/libstd/sync/rwlock.rs index 07b2f2cf541..3f177a42f44 100644 --- a/src/libstd/sync/rwlock.rs +++ b/src/libstd/sync/rwlock.rs @@ -60,7 +60,7 @@ pub struct RWLock { data: UnsafeCell, } -/// Structure representing a staticaly allocated RWLock. +/// Structure representing a statically allocated RWLock. /// /// This structure is intended to be used inside of a `static` and will provide /// automatic global access as well as lazy initialization. The internal diff --git a/src/libstd/thread_local/scoped.rs b/src/libstd/thread_local/scoped.rs index 96f09190c2f..643a0f55e74 100644 --- a/src/libstd/thread_local/scoped.rs +++ b/src/libstd/thread_local/scoped.rs @@ -17,7 +17,7 @@ //! //! There are no restrictions on what types can be placed into a scoped //! variable, but all scoped variables are initialized to the equivalent of -//! null. Scoped thread local stor is useful when a value is present for a known +//! null. Scoped thread local storage is useful when a value is present for a known //! period of time and it is not required to relinquish ownership of the //! contents. //!