mirror of
https://github.com/google/comprehensive-rust.git
synced 2025-06-14 13:26:21 +02:00
Tuples with "..." make no sense, so don't use them
This commit is contained in:
parent
06b594b47a
commit
4126cbd519
@ -3,7 +3,7 @@
|
|||||||
| | Types | Literals |
|
| | Types | Literals |
|
||||||
|--------|---------------------|--------------------------|
|
|--------|---------------------|--------------------------|
|
||||||
| Arrays | `[T; N]` | `[20, 30, 40]`, `[0; 3]` |
|
| Arrays | `[T; N]` | `[20, 30, 40]`, `[0; 3]` |
|
||||||
| Tuples | `(T1, T2, T3, ...)` | `('x', 1.2, 0)` |
|
| Tuples | `(T1, T2, T3)` | `('x', 1.2, 0)` |
|
||||||
|
|
||||||
Array assignment and access:
|
Array assignment and access:
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user