From d1e2d295f89276661367ba3fe19589b4a7934538 Mon Sep 17 00:00:00 2001 From: zofrex Date: Sun, 7 Apr 2013 22:08:34 +0100 Subject: [PATCH] Update manual for single-element tuples --- doc/rust.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/rust.md b/doc/rust.md index e99b3bb565d..da4b5146f34 100644 --- a/doc/rust.md +++ b/doc/rust.md @@ -1653,11 +1653,12 @@ Path expressions are [lvalues](#lvalues-rvalues-and-temporaries). ### Tuple expressions -Tuples are written by enclosing two or more comma-separated +Tuples are written by enclosing one or more comma-separated expressions in parentheses. They are used to create [tuple-typed](#tuple-types) values. ~~~~~~~~ {.tuple} +(0,); (0f, 4.5f); ("a", 4u, true); ~~~~~~~~