diff options
| author | Cristi Cobzarenco <cristi.cobzarenco@gmail.com> | 2015-10-07 23:11:25 +0100 |
|---|---|---|
| committer | Cristi Cobzarenco <cristi.cobzarenco@gmail.com> | 2015-10-08 19:49:31 +0100 |
| commit | 4b308b44e1d8204702f6912dda4dfc404aa2a87d (patch) | |
| tree | 81656e777de1d1de896739e318645bca7317e391 /src/libstd | |
| parent | 95285c496f58a326eace11bddb25a7ce7adcfe44 (diff) | |
| download | rust-4b308b44e1d8204702f6912dda4dfc404aa2a87d.tar.gz rust-4b308b44e1d8204702f6912dda4dfc404aa2a87d.zip | |
typos: fix a grabbag of typos all over the place
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/io/buffered.rs | 2 | ||||
| -rw-r--r-- | src/libstd/io/mod.rs | 4 | ||||
| -rw-r--r-- | src/libstd/io/stdio.rs | 6 | ||||
| -rw-r--r-- | src/libstd/net/ip.rs | 2 | ||||
| -rw-r--r-- | src/libstd/prelude/mod.rs | 2 | ||||
| -rw-r--r-- | src/libstd/sync/mpsc/mod.rs | 2 | ||||
| -rw-r--r-- | src/libstd/sys/common/wtf8.rs | 4 | ||||
| -rw-r--r-- | src/libstd/sys/unix/ext/process.rs | 2 | ||||
| -rw-r--r-- | src/libstd/sys/unix/mod.rs | 2 | ||||
| -rw-r--r-- | src/libstd/sys/windows/mod.rs | 4 | ||||
| -rw-r--r-- | src/libstd/sys/windows/mutex.rs | 2 |
11 files changed, 16 insertions, 16 deletions
diff --git a/src/libstd/io/buffered.rs b/src/libstd/io/buffered.rs index 90bcbe7fe86..acab63315e4 100644 --- a/src/libstd/io/buffered.rs +++ b/src/libstd/io/buffered.rs @@ -546,7 +546,7 @@ impl<W> IntoInnerError<W> { /// let stream = match stream.into_inner() { /// Ok(s) => s, /// Err(e) => { - /// // Here, e is a IntoInnerError, let's re-examine the buffer: + /// // Here, e is an IntoInnerError, let's re-examine the buffer: /// let buffer = e.into_inner(); /// /// // do stuff to try to recover diff --git a/src/libstd/io/mod.rs b/src/libstd/io/mod.rs index a76755dadd3..166909f20b7 100644 --- a/src/libstd/io/mod.rs +++ b/src/libstd/io/mod.rs @@ -23,7 +23,7 @@ //! Because they are traits, they're implemented by a number of other types, //! and you can implement them for your types too. As such, you'll see a //! few different types of I/O throughout the documentation in this module: -//! `File`s, `TcpStream`s, and somtimes even `Vec<T>`s. For example, `Read` +//! `File`s, `TcpStream`s, and sometimes even `Vec<T>`s. For example, `Read` //! adds a `read()` method, which we can use on `File`s: //! //! ``` @@ -234,7 +234,7 @@ //! The return type of `read_input()`, `io::Result<()>`, is a very common type //! for functions which don't have a 'real' return value, but do want to return //! errors if they happen. In this case, the only purpose of this function is -//! to read the line and print it, so we use use `()`. +//! to read the line and print it, so we use `()`. //! //! [result]: type.Result.html //! [try]: macro.try!.html diff --git a/src/libstd/io/stdio.rs b/src/libstd/io/stdio.rs index c2110ef1d83..31b881bebf0 100644 --- a/src/libstd/io/stdio.rs +++ b/src/libstd/io/stdio.rs @@ -146,7 +146,7 @@ pub struct Stdin { inner: Arc<Mutex<BufReader<Maybe<StdinRaw>>>>, } -/// A locked reference to the a `Stdin` handle. +/// A locked reference to the `Stdin` handle. /// /// This handle implements both the `Read` and `BufRead` traits and is /// constructed via the `lock` method on `Stdin`. @@ -323,7 +323,7 @@ pub struct Stdout { inner: Arc<ReentrantMutex<RefCell<LineWriter<Maybe<StdoutRaw>>>>>, } -/// A locked reference to the a `Stdout` handle. +/// A locked reference to the `Stdout` handle. /// /// This handle implements the `Write` trait and is constructed via the `lock` /// method on `Stdout`. @@ -430,7 +430,7 @@ pub struct Stderr { inner: Arc<ReentrantMutex<RefCell<Maybe<StderrRaw>>>>, } -/// A locked reference to the a `Stderr` handle. +/// A locked reference to the `Stderr` handle. /// /// This handle implements the `Write` trait and is constructed via the `lock` /// method on `Stderr`. diff --git a/src/libstd/net/ip.rs b/src/libstd/net/ip.rs index 09aea50cfbe..633e7326bb1 100644 --- a/src/libstd/net/ip.rs +++ b/src/libstd/net/ip.rs @@ -22,7 +22,7 @@ use libc; use sys_common::{AsInner, FromInner}; use net::{hton, ntoh}; -/// An IP address, either a IPv4 or IPv6 address. +/// An IP address, either an IPv4 or IPv6 address. #[unstable(feature = "ip_addr", reason = "recent addition", issue = "27801")] #[derive(Copy, Clone, Eq, PartialEq, Debug, Hash, PartialOrd, Ord)] pub enum IpAddr { diff --git a/src/libstd/prelude/mod.rs b/src/libstd/prelude/mod.rs index 82578172802..f1c626cc165 100644 --- a/src/libstd/prelude/mod.rs +++ b/src/libstd/prelude/mod.rs @@ -74,7 +74,7 @@ //! [`Eq`](../cmp/trait.Eq.html), //! [`Ord`](../cmp/trait.Ord.html) //! }. -//! The comparision traits, which implement the comparison operators +//! The comparison traits, which implement the comparison operators //! and are often seen in trait bounds. //! * `std::convert::`{ //! [`AsRef`](../convert/trait.AsRef.html), diff --git a/src/libstd/sync/mpsc/mod.rs b/src/libstd/sync/mpsc/mod.rs index 8c5cec969a6..a0d0147296a 100644 --- a/src/libstd/sync/mpsc/mod.rs +++ b/src/libstd/sync/mpsc/mod.rs @@ -427,7 +427,7 @@ impl<T> UnsafeFlavor<T> for Receiver<T> { /// use std::sync::mpsc::channel; /// use std::thread; /// -/// // tx is is the sending half (tx for transmission), and rx is the receiving +/// // tx is the sending half (tx for transmission), and rx is the receiving /// // half (rx for receiving). /// let (tx, rx) = channel(); /// diff --git a/src/libstd/sys/common/wtf8.rs b/src/libstd/sys/common/wtf8.rs index 10f77d0207c..a6eada832cd 100644 --- a/src/libstd/sys/common/wtf8.rs +++ b/src/libstd/sys/common/wtf8.rs @@ -146,13 +146,13 @@ impl fmt::Debug for Wtf8Buf { } impl Wtf8Buf { - /// Creates an new, empty WTF-8 string. + /// Creates a new, empty WTF-8 string. #[inline] pub fn new() -> Wtf8Buf { Wtf8Buf { bytes: Vec::new() } } - /// Creates an new, empty WTF-8 string with pre-allocated capacity for `n` bytes. + /// Creates a new, empty WTF-8 string with pre-allocated capacity for `n` bytes. #[inline] pub fn with_capacity(n: usize) -> Wtf8Buf { Wtf8Buf { bytes: Vec::with_capacity(n) } diff --git a/src/libstd/sys/unix/ext/process.rs b/src/libstd/sys/unix/ext/process.rs index 81980ea25fb..dcfa376c81e 100644 --- a/src/libstd/sys/unix/ext/process.rs +++ b/src/libstd/sys/unix/ext/process.rs @@ -39,7 +39,7 @@ pub trait CommandExt { /// This is not enough to create a daemon process. The *init* process should /// be the child reaper of a daemon. This can be achieved if the parent /// process exit. Moreover, a daemon should not have a controlling terminal. - /// To acheive this, a session leader (the child) must spawn another process + /// To achieve this, a session leader (the child) must spawn another process /// (the daemon) in the same session. #[unstable(feature = "process_session_leader", reason = "recently added", issue = "27811")] diff --git a/src/libstd/sys/unix/mod.rs b/src/libstd/sys/unix/mod.rs index 964bc08ff4e..3a88f36399e 100644 --- a/src/libstd/sys/unix/mod.rs +++ b/src/libstd/sys/unix/mod.rs @@ -49,7 +49,7 @@ pub mod time; pub mod stdio; pub fn init() { - // By default, some platforms will send a *signal* when a EPIPE error + // By default, some platforms will send a *signal* when an EPIPE error // would otherwise be delivered. This runtime doesn't install a SIGPIPE // handler, causing it to kill the program, which isn't exactly what we // want! diff --git a/src/libstd/sys/windows/mod.rs b/src/libstd/sys/windows/mod.rs index 04bb5e5ea38..85f5d4e5884 100644 --- a/src/libstd/sys/windows/mod.rs +++ b/src/libstd/sys/windows/mod.rs @@ -75,8 +75,8 @@ fn to_utf16_os(s: &OsStr) -> Vec<u16> { v } -// Many Windows APIs follow a pattern of where we hand the a buffer and then -// they will report back to us how large the buffer should be or how many bytes +// Many Windows APIs follow a pattern of where we hand a buffer and then they +// will report back to us how large the buffer should be or how many bytes // currently reside in the buffer. This function is an abstraction over these // functions by making them easier to call. // diff --git a/src/libstd/sys/windows/mutex.rs b/src/libstd/sys/windows/mutex.rs index 277c3d14c0e..b770156582d 100644 --- a/src/libstd/sys/windows/mutex.rs +++ b/src/libstd/sys/windows/mutex.rs @@ -22,7 +22,7 @@ //! more details. //! //! 3. While CriticalSection is fair and SRWLock is not, the current Rust policy -//! is there there are no guarantees of fairness. +//! is that there are no guarantees of fairness. //! //! The downside of this approach, however, is that SRWLock is not available on //! Windows XP, so we continue to have a fallback implementation where |
