Skip to content

Commit 64f6229

Browse files
committed
More cmr nitfixes
Signed-off-by: Peter Atashian <[email protected]>
1 parent 6e269de commit 64f6229

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

text/0000-repr-pack.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,17 @@ specify a custom packing for `struct` types.
1313
[motivation]: #motivation
1414

1515
Many C/C++ compilers allow a packing to be specified for structs which
16-
effectivally lowers the alignment for a struct and its fields (for example with
16+
effectively lowers the alignment for a struct and its fields (for example with
1717
MSVC there is `#pragma pack(N)`). Such packing is used extensively in certain
18-
C/C++ libraries (such as Windows API which uses it all over the place making
19-
writing Rust libraries such as `winapi` a nightmare).
18+
C/C++ libraries (such as Windows API which uses it pervasively making writing
19+
Rust libraries such as `winapi` challenging).
2020

2121
At the moment the only way to work around the lack of a proper
2222
`#[repr(pack = "N")]` attribute is to use `#[repr(packed)]` and then manually
2323
fill in padding which is a burdensome task. Even then that isn't quite right
2424
because the overall alignment of the struct would end up as 1 even though it
2525
needs to be N (or the default if that is smaller than N), so this fills in a gap
26-
which is basically impossible to do in Rust at the moment.
26+
which is impossible to do in Rust at the moment.
2727

2828
# Detailed design
2929
[design]: #detailed-design

0 commit comments

Comments
 (0)