Skip to content

Commit 7132bd4

Browse files
author
Jakub Bukaj
committed
Update the reference
1 parent f4a402f commit 7132bd4

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

src/doc/reference.md

+8-4
Original file line numberDiff line numberDiff line change
@@ -458,10 +458,9 @@ Examples of floating-point literals of various forms:
458458
12E+99_f64; // type f64
459459
```
460460

461-
##### Unit and boolean literals
461+
##### Boolean literals
462462

463-
The _unit value_, the only value of the type that has the same name, is written
464-
as `()`. The two values of the boolean type are written `true` and `false`.
463+
The two values of the boolean type are written `true` and `false`.
465464

466465
### Symbols
467466

@@ -2716,7 +2715,7 @@ or an item. Path expressions are [lvalues](#lvalues,-rvalues-and-temporaries).
27162715

27172716
### Tuple expressions
27182717

2719-
Tuples are written by enclosing one or more comma-separated expressions in
2718+
Tuples are written by enclosing zero or more comma-separated expressions in
27202719
parentheses. They are used to create [tuple-typed](#tuple-types) values.
27212720

27222721
```{.tuple}
@@ -2725,6 +2724,11 @@ parentheses. They are used to create [tuple-typed](#tuple-types) values.
27252724
("a", 4u, true);
27262725
```
27272726

2727+
### Unit expressions
2728+
2729+
The expression `()` denotes the _unit value_, the only value of the type with
2730+
the same name.
2731+
27282732
### Structure expressions
27292733

27302734
```{.ebnf .gram}

0 commit comments

Comments
 (0)