Skip to content

Commit e72bf56

Browse files
authored
Fix double-word typos (rust-lang#1084)
Inspired by rust-lang#1079. I used this command to find these typos: rg --multiline --pcre2 '\b([a-zA-Z]+) \1\b' src -tmd There were a couple false positives of the form "that that" meaning "that it" or "that this".
1 parent ff36317 commit e72bf56

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/borrow_check/region_inference/member_constraints.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ i.e., that `'0` must be *smaller* than. In our example, this would be
141141
examples, the chain may be more indirect.
142142

143143
We can use upper bounds to rule out members in a very similar way to
144-
lower lower bounds. If UB is some upper bound, then we know that `UB:
144+
lower bounds. If UB is some upper bound, then we know that `UB:
145145
'0` must hold, so we can rule out any choice `'choice` where `UB:
146146
'choice` does not hold.
147147

src/borrow_check/region_inference/placeholders_and_universes.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ index**. The idea of a "universe" is that it is a set of names that
7575
are in scope within some type or at some point. Universes are formed
7676
into a tree, where each child extends its parents with some new names.
7777
So the **root universe** conceptually contains global names, such as
78-
the the lifetime `'static` or the type `i32`. In the compiler, we also
78+
the lifetime `'static` or the type `i32`. In the compiler, we also
7979
put generic type parameters into this root universe (in this sense,
8080
there is not just one root universe, but one per item). So consider
8181
this function `bar`:

src/mir/dataflow.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ when possible.
147147

148148
Calling `iterate_to_fixpoint` on your `Engine` will return a `Results`, which
149149
contains the dataflow state at fixpoint upon entry of each block. Once you have
150-
a `Results`, you can can inspect the dataflow state at fixpoint at any point in
150+
a `Results`, you can inspect the dataflow state at fixpoint at any point in
151151
the CFG. If you only need the state at a few locations (e.g., each `Drop`
152152
terminator) use a [`ResultsCursor`]. If you need the state at *every* location,
153153
a [`ResultsVisitor`] will be more efficient.

src/param_env.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Parameter Environment
22

3-
When working with associated and/or or generic items (types, constants,
3+
When working with associated and/or generic items (types, constants,
44
functions/methods) it is often relevant to have more information about the
55
`Self` or generic parameters. Trait bounds and similar information is encoded in
66
the [`ParamEnv`][pe]. Often this is not enough information to obtain things like the

0 commit comments

Comments
 (0)