about summary refs log tree commit diff
path: root/src/doc/tutorial.md
diff options
context:
space:
mode:
authorZooko Wilcox-O'Hearn <zooko@zooko.com>2014-06-25 01:34:24 +0000
committerZooko Wilcox-O'Hearn <zooko@zooko.com>2014-06-25 01:34:24 +0000
commitd6ea8627ba6e5b2f109f40703f6766d6d12355a3 (patch)
tree95b34dfc46f42bb4676c1106c07d7be93d002951 /src/doc/tutorial.md
parentc690bda159285c7a5e17d39df4b76a92d115c9fd (diff)
downloadrust-d6ea8627ba6e5b2f109f40703f6766d6d12355a3.tar.gz
rust-d6ea8627ba6e5b2f109f40703f6766d6d12355a3.zip
add "(see below)" to a reference to a new concept
This is because I observed someone reading the tutorial who thought they'd
missed something when they got to the mention of variable bindings.

This patch doesn't reflow the paragraphs so that you can see the semantic
change that I made, and a subsequent patch will reflow this paragraph.

Fixes https://github.com/rust-lang/rust/issues/13570.
Diffstat (limited to 'src/doc/tutorial.md')
-rw-r--r--src/doc/tutorial.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/doc/tutorial.md b/src/doc/tutorial.md
index 9b9153fe579..ac8b70185eb 100644
--- a/src/doc/tutorial.md
+++ b/src/doc/tutorial.md
@@ -474,7 +474,7 @@ often convenient to use a block expression for each case, in which case
 the commas are optional as shown below. Literals are valid patterns and
 match only their own value. A single arm may match multiple different
 patterns by combining them with the pipe operator (`|`), so long as every
-pattern binds the same set of variables. Ranges of numeric literal
+pattern binds the same set of variables (see "destructuring" below). Ranges of numeric literal
 patterns can be expressed with two dots, as in `M..N`. The underscore
 (`_`) is a wildcard pattern that matches any single value. (`..`) is a
 different wildcard that can match one or more fields in an `enum` variant.