about summary refs log tree commit diff
path: root/src/doc/reference.md
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2014-11-22 22:36:40 +0000
committerbors <bors@rust-lang.org>2014-11-22 22:36:40 +0000
commitccc4a7cebc759b3c8295b64bd5c1fe29fdb3db8a (patch)
tree042c5385480463c9e84b30cfbdc6b3539ca2a671 /src/doc/reference.md
parent0d0a29061443852cae070b27d51de7cc69bbf293 (diff)
parente87894ef045139b5dbb2982f3522b4694fd3d6c0 (diff)
downloadrust-ccc4a7cebc759b3c8295b64bd5c1fe29fdb3db8a.tar.gz
rust-ccc4a7cebc759b3c8295b64bd5c1fe29fdb3db8a.zip
auto merge of #19136 : alfie/rust/master, r=steveklabnik
An example of how type definitions work would be handy
Diffstat (limited to 'src/doc/reference.md')
-rw-r--r--src/doc/reference.md7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/doc/reference.md b/src/doc/reference.md
index 65027df20c3..a62f8bf9601 100644
--- a/src/doc/reference.md
+++ b/src/doc/reference.md
@@ -1334,7 +1334,12 @@ specific type; the type-specified aspects of a value include:
 For example, the type `(u8, u8)` defines the set of immutable values that are
 composite pairs, each containing two unsigned 8-bit integers accessed by
 pattern-matching and laid out in memory with the `x` component preceding the
-`y` component.
+`y` component:
+
+```
+type Point = (u8, u8);
+let p: Point = (41, 68);
+```
 
 ### Structures