Skip to content

Commit e084b8d

Browse files
committed
Apply nits
1 parent d9fc1a1 commit e084b8d

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/type-coercions.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -251,10 +251,10 @@ LUB coercion has the following properties:
251251

252252
Note the feature No. 3, it uses the word "means" rather than "if and only if".
253253
That's because currently if `ty0` and `ty1` can be coerced to `ty2` and
254-
unfortunately `ty2` equals to neither `ty0` nor `ty1`, there are only one
254+
if `ty2` equals to neither `ty0` nor `ty1`, there is only one
255255
special situation where we can get `LubCoerce(ty0, ty1) == Some(ty2)`:
256256
`LubCoerce((FnDef | Closure), (FnDef | Closure)) == Some(FnPtr)` (where Closure
257-
is non-capturing). You can check it with the pseudo code.
257+
is non-capturing).
258258

259259
When an expression that performs LUB coercion has an expected type, the
260260
expected type is added to the list of types the coercion operates on. So,

stable-check/Cargo.lock

+3-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)