Skip to content

Commit a6c35fc

Browse files
Fixes some typos (rust-lang#1502)
* Fix some typos. Co-authored-by: pierwill <19642016+pierwill@users.noreply.github.com>
1 parent 03fe2d4 commit a6c35fc

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

src/backend/monomorph.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ or more modules in Crate B.
7070
| Crate A function | Behavior |
7171
| - | - |
7272
| Non-generic function | Crate A function doesn't appear in any codegen units of Crate B |
73-
| Non-generic `#[inline]` function | Crate A function appears with in a single CGU of Crate B, and exists even after post-inlining stage|
73+
| Non-generic `#[inline]` function | Crate A function appears within a single CGU of Crate B, and exists even after post-inlining stage|
7474
| Generic function | Regardless of inlining, all monomorphized (specialized) functions <br> from Crate A appear within a single codegen unit for Crate B. <br> The codegen unit exists even after the post inlining stage.|
7575
| Generic `#[inline]` function | - same - |
7676

src/macro-expansion.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -149,9 +149,9 @@ macros are implemented in [`rustc_builtin_macros`], along with some other early
149149
code generation facilities like injection of standard library imports or
150150
generation of test harness. There are some additional helpers for building
151151
their AST fragments in [`rustc_expand::build`][reb]. Eager expansion generally
152-
performs a subset of the things that lazy (normal) expansion. It is done by
152+
performs a subset of the things that lazy (normal) expansion does. It is done by
153153
invoking [`fully_expand_fragment`][fef] on only part of a crate (as opposed to
154-
whole crate, like we normally do).
154+
the whole crate, like we normally do).
155155

156156
### Other Data Structures
157157

@@ -532,7 +532,7 @@ three cases has occurred:
532532
- Failure: the token stream does not match `matcher`. This results in an error message such as
533533
"No rule expected token _blah_".
534534
- Error: some fatal error has occurred _in the parser_. For example, this
535-
happens if there are more than one pattern match, since that indicates
535+
happens if there is more than one pattern match, since that indicates
536536
the macro is ambiguous.
537537

538538
The full interface is defined [here][code_parse_int].

src/mir/dataflow.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ slower as a result. All implementers of `GenKillAnalysis` also implement
6161
### Transfer Functions and Effects
6262

6363
The dataflow framework in `rustc` allows each statement (and terminator) inside
64-
a basic block define its own transfer function. For brevity, these
64+
a basic block to define its own transfer function. For brevity, these
6565
individual transfer functions are known as "effects". Each effect is applied
6666
successively in dataflow order, and together they define the transfer function
6767
for the entire basic block. It's also possible to define an effect for

src/mir/drop-elaboration.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ a few optimizations:
111111

112112
- Only paths that are the target of a `Drop` (or have the target as a prefix)
113113
need drop flags.
114-
- Some variables are known to initialized (or uninitialized) when they are
114+
- Some variables are known to be initialized (or uninitialized) when they are
115115
dropped. These do not need drop flags.
116116
- If a set of paths are only dropped or moved from via a shared prefix, those
117117
paths can share a single drop flag.

src/parallel-rustc.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ occurs in the `rustc_codegen_ssa::base` module.
2626

2727
The underlying thread-safe data-structures used in the parallel compiler
2828
can be found in the `rustc_data_structures::sync` module. These data structures
29-
are implemented diferently depending on whether `parallel-compiler` is true.
29+
are implemented differently depending on whether `parallel-compiler` is true.
3030

3131
| data structure | parallel | non-parallel |
3232
| -------------------------------- | --------------------------------------------------- | ------------ |

src/ty-fold.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ and
1717

1818
For example, the `TypeFolder` trait has a method
1919
[`fold_ty`](https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/ty/fold/trait.TypeFolder.html#method.fold_ty)
20-
that takes a type as input a type and returns a new type as a result. `TypeFoldable` invokes the
20+
that takes a type as input and returns a new type as a result. `TypeFoldable` invokes the
2121
`TypeFolder` `fold_foo` methods on itself, giving the `TypeFolder` access to its contents (the
2222
types, regions, etc that are contained within).
2323

0 commit comments

Comments
 (0)