Skip to content

Commit 6660e44

Browse files
Adam C. Foltzermark-i-m
Adam C. Foltzer
authored andcommitted
Fix typos
1 parent 8a005f5 commit 6660e44

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

src/incremental-compilation.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ This can lead to ICEs and other problems in the compiler.
114114

115115
## Improvements to the basic algorithm
116116

117-
In the description basic algorithm, we said that at the end of
117+
In the description of the basic algorithm, we said that at the end of
118118
compilation we would save the results of all the queries that were
119119
performed. In practice, this can be quite wasteful – many of those
120120
results are very cheap to recompute, and serializing and deserializing

src/query.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ They return the result of the query.
141141
#### How providers are setup
142142

143143
When the tcx is created, it is given the providers by its creator using
144-
the `Providers` struct. This struct is generate by the macros here, but it
144+
the `Providers` struct. This struct is generated by the macros here, but it
145145
is basically a big list of function pointers:
146146

147147
```rust

src/trait-resolution.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -263,13 +263,13 @@ Confirmation is where an error would be reported because the impl specified
263263
that `Target` would be `usize`, but the obligation reported `char`. Hence the
264264
result of selection would be an error.
265265

266-
Note that the candidate impl is chosen base on the `Self` type, but
266+
Note that the candidate impl is chosen based on the `Self` type, but
267267
confirmation is done based on (in this case) the `Target` type parameter.
268268

269269
### Selection during translation
270270

271271
As mentioned above, during type checking, we do not store the results of trait
272-
selection. At trans time, repeat the trait selection to choose a particular
272+
selection. At trans time, we repeat the trait selection to choose a particular
273273
impl for each method call. In this second selection, we do not consider any
274274
where-clauses to be in scope because we know that each resolution will resolve
275275
to a particular impl.

src/type-inference.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ for some fresh `'cx` and `'tcx` – the latter corresponds to the lifetime of
3939
this temporary arena, and the `'cx` is the lifetime of the `InferCtxt` itself.
4040
(Again, see the [`ty` chapter][ty-ch] for more details on this setup.)
4141

42-
The `tcx.infer_ctxt` method actually returns a build, which means
42+
The `tcx.infer_ctxt` method actually returns a builder, which means
4343
there are some kinds of configuration you can do before the `infcx` is
4444
created. See `InferCtxtBuilder` for more information.
4545

0 commit comments

Comments
 (0)