From e223e5c28f4ea9ebcdd9da52a5279175ce0ac22f Mon Sep 17 00:00:00 2001 From: Ulrik Sverdrup Date: Thu, 23 Apr 2015 23:34:04 +0200 Subject: [PATCH] reference: Remove mention of unit type --- src/doc/reference.md | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/doc/reference.md b/src/doc/reference.md index 1f79702645d68..c1c57a7b871b2 100644 --- a/src/doc/reference.md +++ b/src/doc/reference.md @@ -3437,14 +3437,6 @@ of the tuple. It has no nominal name and is instead structurally typed. Tuple types and values are denoted by listing the types or values of their elements, respectively, in a parenthesized, comma-separated list. -The empty tuple is the "unit" type `()`, having the single value `()` -(occasionally called "nil"). [^unittype] - -[^unittype]: The "unit" value `()` is *not* a sentinel "null pointer" value for - reference variables; the "unit" type is the implicit return type from functions - otherwise lacking a return type, and can be used in other contexts (such as - message-sending or type-parametric code) as a zero-size type.] - Because tuple elements don't have a name, they can only be accessed by pattern-matching or by using `N` directly as a field to access the `N`th element.