Skip to content

Commit 74d3b78

Browse files
JOE1994JohnTitor
authored andcommitted
minor typo fixes (#445)
* typo fix how to expose the them to any sort of external testing apparatus => how to expose them to any sort of external testing apparatus * typo fix These following image depicts => The following image depicts * typo fix trait itself is found in in => trait itself is found in * Update src/mir/passes.md following JohnTitor's suggestion Co-Authored-By: Yuki Okushi <[email protected]> * Update src/test-implementation.md Also following JohnTitor's suggestion Co-Authored-By: Yuki Okushi <[email protected]>
1 parent 58f3730 commit 74d3b78

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/mir/construction.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ There are essentially four kinds of representations one might want of an express
9292
* `Operand` is an argument to e.g. a `+` operation or a function call
9393
* a temporary variable containing a copy of the value
9494

95-
These following image depicts a general overview of the interactions between the
95+
The following image depicts a general overview of the interactions between the
9696
representations:
9797

9898
<img src="mir_overview.svg">

src/mir/passes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ where we want to access the MIR for type checking or other purposes:
2727
A `MirPass` is some bit of code that processes the MIR, typically –
2828
but not always – transforming it along the way somehow. For example,
2929
it might perform an optimization. The `MirPass` trait itself is found
30-
in in [the `rustc_mir::transform` module][mirtransform], and it
30+
in [the `rustc_mir::transform` module][mirtransform], and it
3131
basically consists of one method, `run_pass`, that simply gets an
3232
`&mut Mir` (along with the tcx and some information about where it
3333
came from). The MIR is therefore modified in place (which helps to

src/test-implementation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ mod my_priv_mod {
2525
}
2626
```
2727
Private items can thus be easily tested without worrying about how to expose
28-
the them to any sort of external testing apparatus. This is key to the
28+
them to any sort of external testing apparatus. This is key to the
2929
ergonomics of testing in Rust. Semantically, however, it's rather odd.
3030
How does any sort of `main` function invoke these tests if they're not visible?
3131
What exactly is `rustc --test` doing?

0 commit comments

Comments
 (0)