about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSteve Klabnik <steve@steveklabnik.com>2015-11-24 09:43:46 -0500
committerSteve Klabnik <steve@steveklabnik.com>2015-11-24 09:43:46 -0500
commitfab9dd6c801b6aa13f97095e501e40016ee5bcec (patch)
tree04b2f3d2164fc3e2d628f9ea8f9cb726f1f0294f
parentacda78a6633026980195957d85d2f58bdebf615e (diff)
parentc3600114cc29bd015847fcb208af55a2e2d3a5b8 (diff)
downloadrust-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.md4
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