Skip to content

Commit 6bacd33

Browse files
Alexander Regueiromark-i-m
authored andcommitted
Very minor grammatical fixes.
1 parent 8a0935c commit 6bacd33

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/ty.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ a safe approximation, so that is what you get back.
135135
You can also find various common types in the `tcx` itself by accessing
136136
`tcx.types.bool`, `tcx.types.char`, etc (see `CommonTypes` for more).
137137

138-
### Beyond types: Other kinds of arena-allocated data structures
138+
### Beyond types: other kinds of arena-allocated data structures
139139

140140
In addition to types, there are a number of other arena-allocated data
141141
structures that you can allocate, and which are found in this

src/type-inference.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ and higher-ranked types.
99
We use the notation `?T` to refer to inference variables, also called
1010
existential variables.
1111

12-
We use the term "region" and "lifetime" interchangeably. Both refer to
12+
We use the terms "region" and "lifetime" interchangeably. Both refer to
1313
the `'a` in `&'a T`.
1414

15-
The term "bound region" refers to regions bound in a function
15+
The term "bound region" refers to a region bound in a function
1616
signature, such as the `'a` in `for<'a> fn(&'a u32)`. A region is
1717
"free" if it is not bound.
1818

@@ -158,7 +158,7 @@ is to first "generalize" `&'a i32` into a type with a region variable:
158158
relate this new variable with the original bound:
159159

160160
&'?b i32 <: &'a i32
161-
161+
162162
This will result in a region constraint (see below) of `'?b: 'a`.
163163

164164
One final interesting case is relating two unbound type variables,
@@ -175,7 +175,7 @@ make (almost) no attempt to solve regions. These constraints have the
175175
form of an outlives constraint:
176176

177177
'a: 'b
178-
178+
179179
Actually the code tends to view them as a subregion relation, but it's the same
180180
idea:
181181

@@ -188,7 +188,7 @@ There is one case where we do some amount of eager unification. If you have an e
188188
between two regions
189189

190190
'a = 'b
191-
191+
192192
we will record that fact in a unification table. You can then use
193193
`opportunistic_resolve_var` to convert `'b` to `'a` (or vice
194194
versa). This is sometimes needed to ensure termination of fixed-point

0 commit comments

Comments
 (0)