Skip to content

Commit 1702194

Browse files
committed
auto merge of #15166 : zookoatleastauthoritycom/rust/13570-add-see-below-to-a-reference-to-a-new-concept-2, r=huonw
This is the same patch as submitted to #13570 and #14124, but with @pnkfelix's comment (#14124 (comment)) addressed, and with reflow as a separate commit. I'm submitting it in case @steveklabnik hasn't yet merged a rewrite of the tutorial (#13570 (comment)), in which case this patch might as well be merged into the old tutorial.
2 parents 8fe47bc + 668bad6 commit 1702194

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/doc/tutorial.md

+6-5
Original file line numberDiff line numberDiff line change
@@ -493,11 +493,12 @@ by an *action* (expression). Each case is separated by commas. It is
493493
often convenient to use a block expression for each case, in which case
494494
the commas are optional as shown below. Literals are valid patterns and
495495
match only their own value. A single arm may match multiple different
496-
patterns by combining them with the pipe operator (`|`), so long as every
497-
pattern binds the same set of variables. Ranges of numeric literal
498-
patterns can be expressed with two dots, as in `M..N`. The underscore
499-
(`_`) is a wildcard pattern that matches any single value. (`..`) is a
500-
different wildcard that can match one or more fields in an `enum` variant.
496+
patterns by combining them with the pipe operator (`|`), so long as
497+
every pattern binds the same set of variables (see "destructuring"
498+
below). Ranges of numeric literal patterns can be expressed with two
499+
dots, as in `M..N`. The underscore (`_`) is a wildcard pattern that
500+
matches any single value. (`..`) is a different wildcard that can match
501+
one or more fields in an `enum` variant.
501502

502503
~~~
503504
# let my_number = 1;

0 commit comments

Comments
 (0)