about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJakub Bukaj <jakub@jakub.cc>2014-11-09 16:19:16 +0100
committerJakub Bukaj <jakub@jakub.cc>2014-11-16 14:23:15 +0100
commitc425ed2a8d98241cdd4b795e4277c68eb4eeb235 (patch)
tree96434804193d3e514d269e4fbfd99514710c4af4
parent28b1b2ec393fb3c76543d7ee46b2cb2d7954b6da (diff)
downloadrust-c425ed2a8d98241cdd4b795e4277c68eb4eeb235.tar.gz
rust-c425ed2a8d98241cdd4b795e4277c68eb4eeb235.zip
Update the reference
-rw-r--r--src/doc/reference.md12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/doc/reference.md b/src/doc/reference.md
index 5d1401e27ba..4e21c76e5a6 100644
--- a/src/doc/reference.md
+++ b/src/doc/reference.md
@@ -458,10 +458,9 @@ Examples of floating-point literals of various forms:
 12E+99_f64;                        // type f64
 ```
 
-##### Unit and boolean literals
+##### Boolean literals
 
-The _unit value_, the only value of the type that has the same name, is written
-as `()`. The two values of the boolean type are written `true` and `false`.
+The two values of the boolean type are written `true` and `false`.
 
 ### Symbols
 
@@ -2717,7 +2716,7 @@ or an item. Path expressions are [lvalues](#lvalues,-rvalues-and-temporaries).
 
 ### Tuple expressions
 
-Tuples are written by enclosing one or more comma-separated expressions in
+Tuples are written by enclosing zero or more comma-separated expressions in
 parentheses. They are used to create [tuple-typed](#tuple-types) values.
 
 ```{.tuple}
@@ -2726,6 +2725,11 @@ parentheses. They are used to create [tuple-typed](#tuple-types) values.
 ("a", 4u, true);
 ```
 
+### Unit expressions
+
+The expression `()` denotes the _unit value_, the only value of the type with
+the same name.
+
 ### Structure expressions
 
 ```{.ebnf .gram}