diff --git a/src/doc/tutorial.md b/src/doc/tutorial.md index ac8b70185eb74..cb743f1cf887a 100644 --- a/src/doc/tutorial.md +++ b/src/doc/tutorial.md @@ -473,11 +473,12 @@ by an *action* (expression). Each case is separated by commas. It is 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 (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. +patterns by combining them with the pipe operator (`|`), so long as +every 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. ~~~ # let my_number = 1;