diff options
| author | Joseph Crail <jbcrail@gmail.com> | 2014-09-02 01:35:58 -0400 |
|---|---|---|
| committer | Joseph Crail <jbcrail@gmail.com> | 2014-09-03 23:10:38 -0400 |
| commit | b7bfe04b2d003d08f6ac450f41d7f221cb87f129 (patch) | |
| tree | 0bb355348f8f89601ad778d494f22e5f004912da /src/libcollections | |
| parent | d59d97cbec6807166bc237d6f3f9bd1eeb5288d7 (diff) | |
| download | rust-b7bfe04b2d003d08f6ac450f41d7f221cb87f129.tar.gz rust-b7bfe04b2d003d08f6ac450f41d7f221cb87f129.zip | |
Fix spelling errors and capitalization.
Diffstat (limited to 'src/libcollections')
| -rw-r--r-- | src/libcollections/lib.rs | 2 | ||||
| -rw-r--r-- | src/libcollections/ringbuf.rs | 2 | ||||
| -rw-r--r-- | src/libcollections/smallintmap.rs | 2 | ||||
| -rw-r--r-- | src/libcollections/str.rs | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/src/libcollections/lib.rs b/src/libcollections/lib.rs index 175597c77f6..834c9549733 100644 --- a/src/libcollections/lib.rs +++ b/src/libcollections/lib.rs @@ -289,7 +289,7 @@ pub trait Set<T>: Collection { } /// A mutable collection of values which are distinct from one another that -/// can be mutaed. +/// can be mutated. pub trait MutableSet<T>: Set<T> + Mutable { /// Adds a value to the set. Returns `true` if the value was not already /// present in the set. diff --git a/src/libcollections/ringbuf.rs b/src/libcollections/ringbuf.rs index c71367265db..3665535e720 100644 --- a/src/libcollections/ringbuf.rs +++ b/src/libcollections/ringbuf.rs @@ -132,7 +132,7 @@ impl<T> RingBuf<T> { elts: Vec::from_fn(cmp::max(MINIMUM_CAPACITY, n), |_| None)} } - /// Retrieva an element in the `RingBuf` by index. + /// Retrieve an element in the `RingBuf` by index. /// /// Fails if there is no element with the given index. /// diff --git a/src/libcollections/smallintmap.rs b/src/libcollections/smallintmap.rs index b3b3bb1ea22..dd3a639aeac 100644 --- a/src/libcollections/smallintmap.rs +++ b/src/libcollections/smallintmap.rs @@ -324,7 +324,7 @@ impl<V:Clone> SmallIntMap<V> { /// Updates a value in the map. If the key already exists in the map, /// modifies the value with `ff` taking `oldval, newval`. /// Otherwise, sets the value to `newval`. - /// Returasn `true` if the key did not already exist in the map. + /// Returns `true` if the key did not already exist in the map. /// /// # Example /// diff --git a/src/libcollections/str.rs b/src/libcollections/str.rs index c13695e2b84..88c683ef44e 100644 --- a/src/libcollections/str.rs +++ b/src/libcollections/str.rs @@ -44,7 +44,7 @@ //! //! # Representation //! -//! Rust's string type, `str`, is a sequence of unicode scalar values encoded as a +//! Rust's string type, `str`, is a sequence of Unicode scalar values encoded as a //! stream of UTF-8 bytes. All strings are guaranteed to be validly encoded UTF-8 //! sequences. Additionally, strings are not null-terminated and can contain null //! bytes. |
