From 1dbb802003bde762acd211548d5d1c15c7af5c03 Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Fri, 20 Jan 2017 22:32:12 +0100 Subject: [PATCH] Specify the result of integer cast on boolean --- src/libstd/primitive_docs.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/libstd/primitive_docs.rs b/src/libstd/primitive_docs.rs index a9aa2dc267190..c729fab373f1c 100644 --- a/src/libstd/primitive_docs.rs +++ b/src/libstd/primitive_docs.rs @@ -12,7 +12,8 @@ // /// The boolean type. /// -/// The `bool` represents a value, which could only be either `true` or `false`. +/// The `bool` represents a value, which could only be either `true` or `false`. If you cast +/// a `bool` into an integer, `true` will be 1 and `false` will be. /// /// # Basic usage ///