From 07a7380b134d3833e4b301398bcc7799c1633811 Mon Sep 17 00:00:00 2001 From: Richard Penman <26063146+richardpenman@users.noreply.github.com> Date: Fri, 9 Jun 2023 14:00:33 -0400 Subject: [PATCH] Update sizes.md (#775) --- src/enums/sizes.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/enums/sizes.md b/src/enums/sizes.md index 32d2d5b7..3a46a4e3 100644 --- a/src/enums/sizes.md +++ b/src/enums/sizes.md @@ -58,7 +58,7 @@ Key Points: * `dbg_size!(&i32)`: size 8 bytes, align: 8 bytes (on a 64-bit machine), * `dbg_size!(Option<&i32>)`: size 8 bytes, align: 8 bytes (null pointer optimization, see below). - * Niche optimization: Rust will merge use unused bit patterns for the enum + * Niche optimization: Rust will merge unused bit patterns for the enum discriminant. * Null pointer optimization: For [some