Skip to content

Commit 606e39a

Browse files
Alexander Regueiromark-i-m
authored andcommitted
More minor fixes.
1 parent fde9968 commit 606e39a

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/hir.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ functions, traits, impls, etc) in the HIR are not immediately
2323
accessible in the parents. So, for example, if there is a module item
2424
`foo` containing a function `bar()`:
2525

26-
```
26+
```rust
2727
mod foo {
28-
fn bar() { }
28+
fn bar() { }
2929
}
3030
```
3131

src/trait-resolution.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,7 @@ and the graph is consulted when propagating defaults down the
457457
specialization hierarchy.
458458

459459
You might expect that the specialization graph would be used during
460-
selection – i.e., when actually performing specialization. This is
460+
selection – i.e. when actually performing specialization. This is
461461
not done for two reasons:
462462

463463
- It's merely an optimization: given a set of candidates that apply,

src/ty.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ structures that you can allocate, and which are found in this
142142
module. Here are a few examples:
143143

144144
- `Substs`, allocated with `mk_substs` – this will intern a slice of types, often used to
145-
specify the values to be substituted for generics (e.g., `HashMap<i32, u32>`
145+
specify the values to be substituted for generics (e.g. `HashMap<i32, u32>`
146146
would be represented as a slice `&'tcx [tcx.types.i32, tcx.types.u32]`).
147147
- `TraitRef`, typically passed by value – a **trait reference**
148148
consists of a reference to a trait along with its various type
@@ -161,5 +161,5 @@ use ty::{self, Ty, TyCtxt};
161161

162162
In particular, since they are so common, the `Ty` and `TyCtxt` types
163163
are imported directly. Other types are often referenced with an
164-
explicit `ty::` prefix (e.g., `ty::TraitRef<'tcx>`). But some modules
164+
explicit `ty::` prefix (e.g. `ty::TraitRef<'tcx>`). But some modules
165165
choose to import a larger or smaller set of names explicitly.

0 commit comments

Comments
 (0)