diff options
| author | Pietro Albini <pietro@pietroalbini.org> | 2018-11-15 11:04:42 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-11-15 11:04:42 +0100 |
| commit | 66fcb3ceb2700ce0d05862305c56097a41f0e69f (patch) | |
| tree | 5cecff9465133e71511b7be14ffd0c627a85573e /src/librustc_data_structures | |
| parent | fb4553299ca2717e6c106cd6db36b7dc6c959aac (diff) | |
| parent | 4e35cbb22eceac145a6f794cde869b3684e0b1d5 (diff) | |
| download | rust-66fcb3ceb2700ce0d05862305c56097a41f0e69f.tar.gz rust-66fcb3ceb2700ce0d05862305c56097a41f0e69f.zip | |
Rollup merge of #55901 - euclio:speling, r=petrochenkov
fix various typos in doc comments
Diffstat (limited to 'src/librustc_data_structures')
| -rw-r--r-- | src/librustc_data_structures/graph/scc/mod.rs | 2 | ||||
| -rw-r--r-- | src/librustc_data_structures/owning_ref/mod.rs | 4 | ||||
| -rw-r--r-- | src/librustc_data_structures/sorted_map.rs | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/src/librustc_data_structures/graph/scc/mod.rs b/src/librustc_data_structures/graph/scc/mod.rs index a989a540102..64de0c2f565 100644 --- a/src/librustc_data_structures/graph/scc/mod.rs +++ b/src/librustc_data_structures/graph/scc/mod.rs @@ -38,7 +38,7 @@ struct SccData<S: Idx> { /// successors can be found. ranges: IndexVec<S, Range<usize>>, - /// Contains the succcessors for all the Sccs, concatenated. The + /// Contains the successors for all the Sccs, concatenated. The /// range of indices corresponding to a given SCC is found in its /// SccData. all_successors: Vec<S>, diff --git a/src/librustc_data_structures/owning_ref/mod.rs b/src/librustc_data_structures/owning_ref/mod.rs index 02640a71010..27c2f8b718a 100644 --- a/src/librustc_data_structures/owning_ref/mod.rs +++ b/src/librustc_data_structures/owning_ref/mod.rs @@ -452,7 +452,7 @@ impl<O, T: ?Sized> OwningRef<O, T> { /// use owning_ref::{OwningRef, Erased}; /// /// fn main() { - /// // NB: Using the concrete types here for explicitnes. + /// // NB: Using the concrete types here for explicitness. /// // For less verbose code type aliases like `BoxRef` are provided. /// /// let owning_ref_a: OwningRef<Box<[i32; 4]>, [i32; 4]> @@ -722,7 +722,7 @@ impl<O, T: ?Sized> OwningRefMut<O, T> { /// use owning_ref::{OwningRefMut, Erased}; /// /// fn main() { - /// // NB: Using the concrete types here for explicitnes. + /// // NB: Using the concrete types here for explicitness. /// // For less verbose code type aliases like `BoxRef` are provided. /// /// let owning_ref_mut_a: OwningRefMut<Box<[i32; 4]>, [i32; 4]> diff --git a/src/librustc_data_structures/sorted_map.rs b/src/librustc_data_structures/sorted_map.rs index 730b13a0584..29d99a6aef3 100644 --- a/src/librustc_data_structures/sorted_map.rs +++ b/src/librustc_data_structures/sorted_map.rs @@ -15,7 +15,7 @@ use std::mem; use std::ops::{RangeBounds, Bound, Index, IndexMut}; /// `SortedMap` is a data structure with similar characteristics as BTreeMap but -/// slightly different trade-offs: lookup, inseration, and removal are O(log(N)) +/// slightly different trade-offs: lookup, insertion, and removal are O(log(N)) /// and elements can be iterated in order cheaply. /// /// `SortedMap` can be faster than a `BTreeMap` for small sizes (<50) since it |
