Skip to content

Commit

Permalink
Apply nits
Browse files Browse the repository at this point in the history
  • Loading branch information
ldm0 committed May 14, 2020
1 parent d9fc1a1 commit e084b8d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/type-coercions.md
Original file line number Diff line number Diff line change
Expand Up @@ -251,10 +251,10 @@ LUB coercion has the following properties:

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

When an expression that performs LUB coercion has an expected type, the
expected type is added to the list of types the coercion operates on. So,
Expand Down
4 changes: 3 additions & 1 deletion stable-check/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e084b8d

Please sign in to comment.