Rollup merge of #30020 - Manishearth:unit, r=bluss
`unit` was in code formatting, which is wrong, since it's not actual code. The correct code is `()`.
This commit is contained in:
commit
fab9dd6c80
@ -677,8 +677,8 @@ apply to the crate as a whole.
|
||||
```
|
||||
|
||||
A crate that contains a `main` function can be compiled to an executable. If a
|
||||
`main` function is present, its return type must be [`unit`](#tuple-types)
|
||||
and it must take no arguments.
|
||||
`main` function is present, its return type must be `()`
|
||||
("[unit](#tuple-types)") and it must take no arguments.
|
||||
|
||||
# Items and attributes
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user