Skip to content

Commit c19106d

Browse files
committed
Minor typos and wording in type-layout
1 parent 35d7db1 commit c19106d

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/glossary.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ array with that item type.
8686

8787
It is a multiple of the alignment, including zero. The size can change
8888
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).
9090

9191
[More][alignment].
9292

src/items/enumerations.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ enum OverflowingDiscriminantError2 {
124124

125125
## Zero-variant Enums
126126

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
128128
no valid values, they cannot be instantiated.
129129

130130
```rust

src/type-layout.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ for field in struct.fields_in_declaration_order() {
188188
struct.size = current_offset + current_offset % struct.alignment;
189189
```
190190

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
192192
> C where structs without data still have a size of one byte.
193193
194194
#### \#[repr(C)] Unions

0 commit comments

Comments
 (0)