Skip to content

Commit

Permalink
Update the reference
Browse files Browse the repository at this point in the history
  • Loading branch information
Jakub Bukaj committed Nov 16, 2014
1 parent 28b1b2e commit c425ed2
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/doc/reference.md
Expand Up @@ -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

Expand Down Expand Up @@ -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}
Expand All @@ -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}
Expand Down

5 comments on commit c425ed2

@bors
Copy link
Contributor

@bors bors commented on c425ed2 Nov 16, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bors
Copy link
Contributor

@bors bors commented on c425ed2 Nov 16, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merging jakub-/rust/remove-unit = c425ed2 into auto

@bors
Copy link
Contributor

@bors bors commented on c425ed2 Nov 16, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

jakub-/rust/remove-unit = c425ed2 merged ok, testing candidate = 321488b

@bors
Copy link
Contributor

@bors bors commented on c425ed2 Nov 16, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bors
Copy link
Contributor

@bors bors commented on c425ed2 Nov 16, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fast-forwarding master to auto = 321488b

Please sign in to comment.