You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
() (unit)
(f64, f64)
(String, i32)
(i32, String) (different type from the previous example)
(i32, f64, Vec, Option)
Curiously, there's no example of a 1-ary tuple type. I suggest adding one to the list, like this:
(i32,)
This would make the list more complete and consistent, and would also help to illustrate the obligatory comma, not just in the tuple expressions for 1-ary tuple values, but also in the type expressions for 1-ary tuple types.
The text was updated successfully, but these errors were encountered:
Here's the current list of examples in section 10.1.5 (https://doc.rust-lang.org/reference/types/tuple.html):
Curiously, there's no example of a 1-ary tuple type. I suggest adding one to the list, like this:
This would make the list more complete and consistent, and would also help to illustrate the obligatory comma, not just in the tuple expressions for 1-ary tuple values, but also in the type expressions for 1-ary tuple types.
The text was updated successfully, but these errors were encountered: