File tree 3 files changed +3
-3
lines changed
3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ array with that item type.
86
86
87
87
It is a multiple of the alignment, including zero. The size can change
88
88
depending on compiler version (as new optimizations are made) and target
89
- platform (as ` usize ` varies).
89
+ platform (similar to how ` usize ` varies per-platform ).
90
90
91
91
[ More] [ alignment ] .
92
92
Original file line number Diff line number Diff line change @@ -124,7 +124,7 @@ enum OverflowingDiscriminantError2 {
124
124
125
125
## Zero-variant Enums
126
126
127
- Enums with zero variants are known as * zero-variant enumss * . As they have
127
+ Enums with zero variants are known as * zero-variant enums * . As they have
128
128
no valid values, they cannot be instantiated.
129
129
130
130
``` rust
Original file line number Diff line number Diff line change @@ -188,7 +188,7 @@ for field in struct.fields_in_declaration_order() {
188
188
struct.size = current_offset + current_offset % struct.alignment;
189
189
```
190
190
191
- > Note: You can have zero-sized structs from this algorithm . This differs from
191
+ > Note: This algorithm can produce zero-sized structs. This differs from
192
192
> C where structs without data still have a size of one byte.
193
193
194
194
#### \# [ repr(C)] Unions
You can’t perform that action at this time.
0 commit comments