Skip to content

Commit 1dbb802

Browse files
Specify the result of integer cast on boolean
1 parent c8af93f commit 1dbb802

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/libstd/primitive_docs.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
//
1313
/// The boolean type.
1414
///
15-
/// The `bool` represents a value, which could only be either `true` or `false`.
15+
/// The `bool` represents a value, which could only be either `true` or `false`. If you cast
16+
/// a `bool` into an integer, `true` will be 1 and `false` will be.
1617
///
1718
/// # Basic usage
1819
///

0 commit comments

Comments
 (0)