Rollup merge of #23033 - pelmers:patch-3, r=steveklabnik
I came across a couple of grammar mistakes when refreshing myself on enums.
This commit is contained in:
commit
455aa62e4d
1 changed files with 3 additions and 3 deletions
|
|
@ -6,8 +6,8 @@ strings, but next, let's talk about some more complicated ways of storing data.
|
|||
|
||||
## Tuples
|
||||
|
||||
The first compound data type we're going to talk about are called *tuples*.
|
||||
Tuples are an ordered list of a fixed size. Like this:
|
||||
The first compound data type we're going to talk about is called the *tuple*.
|
||||
A tuple is an ordered list of fixed size. Like this:
|
||||
|
||||
```rust
|
||||
let x = (1, "hello");
|
||||
|
|
@ -229,7 +229,7 @@ enum Character {
|
|||
```
|
||||
|
||||
An `enum` variant can be defined as most normal types. Below are some example
|
||||
types have been listed which also would be allowed in an `enum`.
|
||||
types which also would be allowed in an `enum`.
|
||||
|
||||
```rust
|
||||
struct Empty;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue