Skip to content

Commit b4b7dca

Browse files
bpfoleyspastorino
authored andcommitted
Fix miscellaneous spelling typos. (#397)
1 parent 093e1f0 commit b4b7dca

File tree

9 files changed

+10
-10
lines changed

9 files changed

+10
-10
lines changed

Diff for: src/SUMMARY.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181
- [Member constraints](./borrow_check/region_inference/member_constraints.md)
8282
- [Placeholders and universes][pau]
8383
- [Closure constraints](./borrow_check/region_inference/closure_constraints.md)
84-
- [Errror reporting](./borrow_check/region_inference/error_reporting.md)
84+
- [Error reporting](./borrow_check/region_inference/error_reporting.md)
8585
- [Two-phase-borrows](./borrow_check/two_phase_borrows.md)
8686
- [Constant evaluation](./const-eval.md)
8787
- [miri const evaluator](./miri.md)

Diff for: src/appendix/glossary.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Term | Meaning
88
------------------------|--------
99
AST | the abstract syntax tree produced by the syntax crate; reflects user syntax very closely.
1010
binder | a "binder" is a place where a variable or type is declared; for example, the `<T>` is a binder for the generic type parameter `T` in `fn foo<T>(..)`, and \|`a`\|` ...` is a binder for the parameter `a`. See [the background chapter for more](./background.html#free-vs-bound)
11-
bound variable | a "bound variable" is one that is declared within an expression/term. For example, the variable `a` is bound within the closure expession \|`a`\|` a * 2`. See [the background chapter for more](./background.html#free-vs-bound)
11+
bound variable | a "bound variable" is one that is declared within an expression/term. For example, the variable `a` is bound within the closure expression \|`a`\|` a * 2`. See [the background chapter for more](./background.html#free-vs-bound)
1212
codegen | the code to translate MIR into LLVM IR.
1313
codegen unit | when we produce LLVM IR, we group the Rust code into a number of codegen units. Each of these units is processed by LLVM independently from one another, enabling parallelism. They are also the unit of incremental re-use.
1414
completeness | completeness is a technical term in type theory. Completeness means that every type-safe program also type-checks. Having both soundness and completeness is very hard, and usually soundness is more important. (see "soundness").

Diff for: src/borrow_check/region_inference.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ Here are some of the fields of the struct:
217217
- [`type_tests`]: contains some constraints on types that we must check after
218218
inference (e.g. `T: 'a`).
219219
- [`closure_bounds_mapping`]: used for propagating region constraints from
220-
closures back out to the creater of the closure.
220+
closures back out to the creator of the closure.
221221

222222
[`constraints`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_mir/borrow_check/nll/region_infer/struct.RegionInferenceContext.html#structfield.constraints
223223
[`liveness_constraints`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_mir/borrow_check/nll/region_infer/struct.RegionInferenceContext.html#structfield.liveness_constraints

Diff for: src/closure.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ the *free variables* meaning they are not bound to the context of the closure.
121121

122122
Other than lazy invocation, one other thing that the distinguishes a closure from a
123123
normal function is that it can use the upvars. It borrows these upvars from its surrounding
124-
context; therfore the compiler has to determine the upvar's borrow type. The compiler starts with
124+
context; therefore the compiler has to determine the upvar's borrow type. The compiler starts with
125125
assigning an immutable borrow type and lowers the restriction (that is, changes it from
126126
**immutable** to **mutable** to **move**) as needed, based on the usage. In the Example 1 above, the
127127
closure only uses the variable for printing but does not modify it in any way and therefore, in the

Diff for: src/codegen/updating-llvm.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ another:
2424
them upstream in LLVM. We'll want to pull fixes back to the compiler itself as
2525
they're merged upstream.
2626

27-
* Second, a new feature may be avaiable in LLVM that we want to use in rustc,
27+
* Second, a new feature may be available in LLVM that we want to use in rustc,
2828
but we don't want to wait for a full LLVM release to test it out.
2929

3030
Each of these reasons has a different strategy for updating LLVM, and we'll go

Diff for: src/how-to-build-and-run.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -495,12 +495,12 @@ One of the challenges with rustc is that the RLS can't handle it, since it's a
495495
bootstrapping compiler. This makes code navigation difficult. One solution is to
496496
use `ctags`.
497497

498-
`ctags` has a long history and several variants. Exhuberant CTags seems to be
498+
`ctags` has a long history and several variants. Exuberant Ctags seems to be
499499
quite commonly distributed but it does not have out-of-box Rust support. Some
500500
distributions seem to use [Universal Ctags][utags], which is a maintained fork
501501
and does have built-in Rust support.
502502

503-
The following script can be used to set up Exhuberant Ctags:
503+
The following script can be used to set up Exuberant Ctags:
504504
[https://github.com/nikomatsakis/rust-etags][etags].
505505

506506
`ctags` integrates into emacs and vim quite easily. The following can then be

Diff for: src/kinds.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ make use of the safe [`UnpackedKind`](#unpackedkind) abstraction.
3030
As `Kind` itself is not type-safe, the `UnpackedKind` enum provides a more
3131
convenient and safe interface for dealing with kinds. An `UnpackedKind` can
3232
be converted to a raw `Kind` using `Kind::from()` (or simply `.into()` when
33-
the context is clear). As mentioned earlier, substition lists store raw
33+
the context is clear). As mentioned earlier, substitution lists store raw
3434
`Kind`s, so before dealing with them, it is preferable to convert them to
3535
`UnpackedKind`s first. This is done by calling the `.unpack()` method.
3636

Diff for: src/traits/goals-and-clauses.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ In terms of code, these types are defined in
5353
definitions given above, general goals basically consist in a combination of
5454
domain goals.
5555

56-
Moreover, flattenning a bit the definition of clauses given previously, one can
56+
Moreover, flattening a bit the definition of clauses given previously, one can
5757
see that clauses are always of the form:
5858
```text
5959
forall<K1, ..., Kn> { DomainGoal :- Goal }

Diff for: src/traits/implied-bounds.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ The rationale for implied bounds for traits is that if a type implements
8181
`Copy`, that is, if there exists an `impl Copy` for that type, there *ought*
8282
to exist an `impl Clone` for that type, otherwise the compiler would have
8383
reported an error in the first place. So again, if we were forced to repeat the
84-
additionnal `where SomeType: Clone` everywhere whereas we already know that
84+
additional `where SomeType: Clone` everywhere whereas we already know that
8585
`SomeType: Copy` hold, we would kind of duplicate the verification work.
8686

8787
Implied bounds are not yet completely enforced in rustc, at the moment it only

0 commit comments

Comments
 (0)