Skip to content

Commit 27e8f15

Browse files
committed
Rollup merge of rust-lang#30020 - Manishearth:unit, r=bluss
`unit` was in code formatting, which is wrong, since it's not actual code. The correct code is `()`.
2 parents 133080a + c360011 commit 27e8f15

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/doc/reference.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -677,8 +677,8 @@ apply to the crate as a whole.
677677
```
678678

679679
A crate that contains a `main` function can be compiled to an executable. If a
680-
`main` function is present, its return type must be [`unit`](#tuple-types)
681-
and it must take no arguments.
680+
`main` function is present, its return type must be `()`
681+
("[unit](#tuple-types)") and it must take no arguments.
682682

683683
# Items and attributes
684684

0 commit comments

Comments
 (0)