1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2025-01-23 22:13:02 +02:00

Show different tuple sizes

This commit is contained in:
Martin Geisler 2022-12-28 15:41:08 +01:00 committed by GitHub
parent 4126cbd519
commit 6851a6b533
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,9 +1,9 @@
# Compound Types
| | Types | Literals |
|--------|---------------------|--------------------------|
|--------|-------------------------------|-----------------------------------|
| Arrays | `[T; N]` | `[20, 30, 40]`, `[0; 3]` |
| Tuples | `(T1, T2, T3)` | `('x', 1.2, 0)` |
| Tuples | `()`, `(T,)`, `(T1, T2)`, ... | `()`, `('x',)`, `('x', 1.2)`, ... |
Array assignment and access: