mirror of
https://github.com/mainmatter/100-exercises-to-learn-rust
synced 2024-12-25 21:58:26 +01:00
reword tuples introduction (#42)
This commit is contained in:
parent
aecd6e6180
commit
bf1cdfdb5c
1 changed files with 2 additions and 1 deletions
|
@ -52,7 +52,8 @@ let y = point.1;
|
||||||
### Tuples
|
### Tuples
|
||||||
|
|
||||||
It's weird say that something is tuple-like when we haven't seen tuples yet!
|
It's weird say that something is tuple-like when we haven't seen tuples yet!
|
||||||
Tuples are Rust primitive types. They group together a fixed number of values with (potentially different) types:
|
Tuples are another example of a primitive Rust type.
|
||||||
|
They group together a fixed number of values with (potentially different) types:
|
||||||
|
|
||||||
```rust
|
```rust
|
||||||
// Two values, same type
|
// Two values, same type
|
||||||
|
|
Loading…
Reference in a new issue