Skip to content

Commit e223e5c

Browse files
author
Ulrik Sverdrup
committed
reference: Remove mention of unit type
1 parent aa93c11 commit e223e5c

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/doc/reference.md

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3437,14 +3437,6 @@ of the tuple. It has no nominal name and is instead structurally typed.
34373437
Tuple types and values are denoted by listing the types or values of their
34383438
elements, respectively, in a parenthesized, comma-separated list.
34393439

3440-
The empty tuple is the "unit" type `()`, having the single value `()`
3441-
(occasionally called "nil"). [^unittype]
3442-
3443-
[^unittype]: The "unit" value `()` is *not* a sentinel "null pointer" value for
3444-
reference variables; the "unit" type is the implicit return type from functions
3445-
otherwise lacking a return type, and can be used in other contexts (such as
3446-
message-sending or type-parametric code) as a zero-size type.]
3447-
34483440
Because tuple elements don't have a name, they can only be accessed by
34493441
pattern-matching or by using `N` directly as a field to access the
34503442
`N`th element.

0 commit comments

Comments
 (0)