Skip to content

Commit 8f11141

Browse files
author
arielb1
committed
Add *bool-cast*
1 parent 5ddf500 commit 8f11141

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

text/0401-coercions.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,7 @@ following holds:
326326
* `e` has type `usize` and `U` is `*U_0`, while `U_0: Sized`; *addr-ptr-cast*
327327
* `e` has type `T` and `T` and `U` are any numeric types; *numeric-cast*
328328
* `e` is a C-like enum and `U` is an integer type or `bool`; *enum-cast*
329+
* `e` has type `bool` and `U` is an integer type or `bool`; *bool-cast*
329330
* `e` has type `u8` and `U` is `char`; *char-cast*
330331
* `e` has type `&.T` and `U` is `*T`, and `e` is a mutable reference
331332
if `U` is. *ref-ptr-cast*

0 commit comments

Comments
 (0)