diff options
| author | Andrew Paseltiner <apaseltiner@gmail.com> | 2015-10-13 09:44:11 -0400 |
|---|---|---|
| committer | Andrew Paseltiner <apaseltiner@gmail.com> | 2015-10-13 09:44:11 -0400 |
| commit | 1162b3752c71515a01875e0c9cef67ec9d7aca46 (patch) | |
| tree | 6989970e8058e01b0bd7f73dc490223dfa6a62a0 /src/libstd | |
| parent | ec4362da562a4b591a7d120c6677e14ea713481a (diff) | |
| download | rust-1162b3752c71515a01875e0c9cef67ec9d7aca46.tar.gz rust-1162b3752c71515a01875e0c9cef67ec9d7aca46.zip | |
Correct spelling in docs
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/collections/hash/map.rs | 4 | ||||
| -rw-r--r-- | src/libstd/lib.rs | 2 | ||||
| -rw-r--r-- | src/libstd/net/tcp.rs | 2 | ||||
| -rw-r--r-- | src/libstd/process.rs | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/src/libstd/collections/hash/map.rs b/src/libstd/collections/hash/map.rs index 4ad8fce8120..0b7c5b0d840 100644 --- a/src/libstd/collections/hash/map.rs +++ b/src/libstd/collections/hash/map.rs @@ -207,7 +207,7 @@ fn test_resize_policy() { /// The hashes are all keyed by the thread-local random number generator /// on creation by default. This means that the ordering of the keys is /// randomized, but makes the tables more resistant to -/// denial-of-service attacks (Hash DoS). This behaviour can be +/// denial-of-service attacks (Hash DoS). This behavior can be /// overridden with one of the constructors. /// /// It is required that the keys implement the `Eq` and `Hash` traits, although @@ -324,7 +324,7 @@ fn search_hashed<K, V, M, F>(table: M, F: FnMut(&K) -> bool, { // This is the only function where capacity can be zero. To avoid - // undefined behaviour when Bucket::new gets the raw bucket in this + // undefined behavior when Bucket::new gets the raw bucket in this // case, immediately return the appropriate search result. if table.capacity() == 0 { return TableRef(table); diff --git a/src/libstd/lib.rs b/src/libstd/lib.rs index 9af766ad2af..a624b352126 100644 --- a/src/libstd/lib.rs +++ b/src/libstd/lib.rs @@ -137,7 +137,7 @@ //! not. //! //! Slices can only be handled through some kind of *pointer*, and as -//! such come in many flavours such as: +//! such come in many flavors such as: //! //! * `&[T]` - *shared slice* //! * `&mut [T]` - *mutable slice* diff --git a/src/libstd/net/tcp.rs b/src/libstd/net/tcp.rs index 5c17ffb9c21..c6499687304 100644 --- a/src/libstd/net/tcp.rs +++ b/src/libstd/net/tcp.rs @@ -235,7 +235,7 @@ impl TcpListener { /// to this listener. The port allocated can be queried via the /// `socket_addr` function. /// - /// The address type can be any implementer of `ToSocketAddrs` trait. See + /// The address type can be any implementor of `ToSocketAddrs` trait. See /// its documentation for concrete examples. #[stable(feature = "rust1", since = "1.0.0")] pub fn bind<A: ToSocketAddrs>(addr: A) -> io::Result<TcpListener> { diff --git a/src/libstd/process.rs b/src/libstd/process.rs index 0be751be950..4e80fb2ceb0 100644 --- a/src/libstd/process.rs +++ b/src/libstd/process.rs @@ -75,7 +75,7 @@ impl IntoInner<imp::Process> for Child { fn into_inner(self) -> imp::Process { self.handle } } -/// A handle to a child procesess's stdin +/// A handle to a child process's stdin #[stable(feature = "process", since = "1.0.0")] pub struct ChildStdin { inner: AnonPipe |
