diff options
| author | Steve Klabnik <steve@steveklabnik.com> | 2015-11-24 09:43:46 -0500 |
|---|---|---|
| committer | Steve Klabnik <steve@steveklabnik.com> | 2015-11-24 09:43:46 -0500 |
| commit | fab9dd6c801b6aa13f97095e501e40016ee5bcec (patch) | |
| tree | 04b2f3d2164fc3e2d628f9ea8f9cb726f1f0294f | |
| parent | acda78a6633026980195957d85d2f58bdebf615e (diff) | |
| parent | c3600114cc29bd015847fcb208af55a2e2d3a5b8 (diff) | |
| download | rust-fab9dd6c801b6aa13f97095e501e40016ee5bcec.tar.gz rust-fab9dd6c801b6aa13f97095e501e40016ee5bcec.zip | |
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 `()`.
| -rw-r--r-- | src/doc/reference.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/doc/reference.md b/src/doc/reference.md index 2ce21b47dfb..949ffb9a5f0 100644 --- a/src/doc/reference.md +++ b/src/doc/reference.md @@ -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 |
