]> git.lizzy.rs Git - rust.git/commitdiff
Document the size of bool
authorSimon Sapin <simon.sapin@exyr.org>
Tue, 21 Nov 2017 13:44:25 +0000 (14:44 +0100)
committerGitHub <noreply@github.com>
Tue, 21 Nov 2017 13:44:25 +0000 (14:44 +0100)
src/libcore/mem.rs

index d57fbdf55f80e41f213ce1d0b77236b082893b43..486093f261c77fb9d71afbf8e024d658c227a86b 100644 (file)
@@ -189,6 +189,7 @@ pub fn forget<T>(t: T) {
 /// Type | size_of::\<Type>()
 /// ---- | ---------------
 /// () | 0
+/// bool | 1
 /// u8 | 1
 /// u16 | 2
 /// u32 | 4