Skip to content

Commit 21e2e6e

Browse files
committed
Clean up section on Type aliases.
1 parent 806d024 commit 21e2e6e

File tree

1 file changed

+5
-12
lines changed

1 file changed

+5
-12
lines changed

src/doc/reference.md

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1300,18 +1300,11 @@ contiguous stack segments like C.
13001300

13011301
A _type alias_ defines a new name for an existing [type](#types). Type
13021302
aliases are declared with the keyword `type`. Every value has a single,
1303-
specific type; the type-specified aspects of a value include:
1304-
1305-
* Whether the value is composed of sub-values or is indivisible.
1306-
* Whether the value represents textual or numerical information.
1307-
* Whether the value represents integral or floating-point information.
1308-
* The sequence of memory operations required to access the value.
1309-
* The [kind](#type-kinds) of the type.
1310-
1311-
For example, the type `(u8, u8)` defines the set of immutable values that are
1312-
composite pairs, each containing two unsigned 8-bit integers accessed by
1313-
pattern-matching and laid out in memory with the `x` component preceding the
1314-
`y` component:
1303+
specific type, but may implement several different traits, or be compatible with
1304+
several different type constraints.
1305+
1306+
For example, the following defines the type `Point` as a synonym for the type
1307+
`(u8, u8)`, the type of pairs of unsigned 8 bit integers.:
13151308

13161309
```
13171310
type Point = (u8, u8);

0 commit comments

Comments
 (0)