diff options
| author | Jonas Schievink <jonasschievink@gmail.com> | 2020-10-29 17:05:31 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-10-29 17:05:31 +0100 |
| commit | e656e609ba8794997d466f764d83374de61b8eea (patch) | |
| tree | 67e1d168c275f6069afedcefc41304dce80cc46b /compiler/rustc_data_structures/src | |
| parent | 1d6e20e706ba1e90f52e0e6029f06b81d705aed4 (diff) | |
| parent | 3fba94851064dd7d9076480080e9387b81d68359 (diff) | |
| download | rust-e656e609ba8794997d466f764d83374de61b8eea.tar.gz rust-e656e609ba8794997d466f764d83374de61b8eea.zip | |
Rollup merge of #78527 - bugadani:typo3, r=jonas-schievink
Fix some more typos
Diffstat (limited to 'compiler/rustc_data_structures/src')
| -rw-r--r-- | compiler/rustc_data_structures/src/tagged_ptr.rs | 2 | ||||
| -rw-r--r-- | compiler/rustc_data_structures/src/transitive_relation.rs | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/compiler/rustc_data_structures/src/tagged_ptr.rs b/compiler/rustc_data_structures/src/tagged_ptr.rs index e3839d19365..cd1e12ca450 100644 --- a/compiler/rustc_data_structures/src/tagged_ptr.rs +++ b/compiler/rustc_data_structures/src/tagged_ptr.rs @@ -24,7 +24,7 @@ mod drop; pub use copy::CopyTaggedPtr; pub use drop::TaggedPtr; -/// This describes the pointer type encaspulated by TaggedPtr. +/// This describes the pointer type encapsulated by TaggedPtr. /// /// # Safety /// diff --git a/compiler/rustc_data_structures/src/transitive_relation.rs b/compiler/rustc_data_structures/src/transitive_relation.rs index fe60a99dde0..2e1512b3929 100644 --- a/compiler/rustc_data_structures/src/transitive_relation.rs +++ b/compiler/rustc_data_structures/src/transitive_relation.rs @@ -18,7 +18,7 @@ pub struct TransitiveRelation<T: Eq + Hash> { edges: Vec<Edge>, // This is a cached transitive closure derived from the edges. - // Currently, we build it lazilly and just throw out any existing + // Currently, we build it lazily and just throw out any existing // copy whenever a new edge is added. (The Lock is to permit // the lazy computation.) This is kind of silly, except for the // fact its size is tied to `self.elements.len()`, so I wanted to @@ -255,7 +255,7 @@ impl<T: Clone + Debug + Eq + Hash> TransitiveRelation<T> { // argument is that, after step 2, we know that no element // can reach its successors (in the vector, not the graph). // After step 3, we know that no element can reach any of - // its predecesssors (because of step 2) nor successors + // its predecessors (because of step 2) nor successors // (because we just called `pare_down`) // // This same algorithm is used in `parents` below. |
