1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2024-12-04 19:45:19 +02:00

Tuples with "..." make no sense, so don't use them

This commit is contained in:
Danny Milosavljevic 2022-12-22 20:25:15 +01:00 committed by GitHub
parent 06b594b47a
commit 4126cbd519
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,7 +3,7 @@
| | Types | Literals |
|--------|---------------------|--------------------------|
| 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: