Skip to content

Commit

Permalink
Minor typos and wording in type-layout
Browse files Browse the repository at this point in the history
  • Loading branch information
Havvy committed Dec 8, 2017
1 parent 35d7db1 commit c19106d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/glossary.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ array with that item type.

It is a multiple of the alignment, including zero. The size can change
depending on compiler version (as new optimizations are made) and target
platform (as `usize` varies).
platform (similar to how `usize` varies per-platform).

[More][alignment].

Expand Down
2 changes: 1 addition & 1 deletion src/items/enumerations.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ enum OverflowingDiscriminantError2 {

## Zero-variant Enums

Enums with zero variants are known as *zero-variant enumss*. As they have
Enums with zero variants are known as *zero-variant enums*. As they have
no valid values, they cannot be instantiated.

```rust
Expand Down
2 changes: 1 addition & 1 deletion src/type-layout.md
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ for field in struct.fields_in_declaration_order() {
struct.size = current_offset + current_offset % struct.alignment;
```

> Note: You can have zero-sized structs from this algorithm. This differs from
> Note: This algorithm can produce zero-sized structs. This differs from
> C where structs without data still have a size of one byte.
#### \#[repr(C)] Unions
Expand Down

0 comments on commit c19106d

Please sign in to comment.