Fix alignment description for u64 and f64 in repr-rust.md

pull/514/head
Riahiamirreza 4 weeks ago committed by GitHub
parent 5b3a9d084c
commit a07c825e76
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -9,7 +9,7 @@ of 2.
Primitives are usually aligned to their size, although this is Primitives are usually aligned to their size, although this is
platform-specific behavior. For example, on x86 `u64` and `f64` are often platform-specific behavior. For example, on x86 `u64` and `f64` are often
aligned to 4 bytes (32 bits). aligned to 8 bytes (64 bits).
A type's size must always be a multiple of its alignment (Zero being a valid size A type's size must always be a multiple of its alignment (Zero being a valid size
for any alignment). This ensures that an array of that type may always be indexed for any alignment). This ensures that an array of that type may always be indexed

Loading…
Cancel
Save