From 4de14124b70e41583a4fbb3bf70daedd255d2d1d Mon Sep 17 00:00:00 2001 From: equal-l2 Date: Wed, 7 Feb 2018 09:21:56 +0900 Subject: [PATCH] Clarify which types range patterns work on --- src/expressions/match-expr.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/expressions/match-expr.md b/src/expressions/match-expr.md index 7b5afc1176334..e168e5838a373 100644 --- a/src/expressions/match-expr.md +++ b/src/expressions/match-expr.md @@ -117,8 +117,7 @@ let message = match x { }; ``` -Range patterns only work on scalar types (like integers and characters; not -like arrays and structs, which have sub-components). A range pattern may not be +Range patterns only work on `char` and numeric types. A range pattern may not be a sub-range of another range pattern inside the same `match`. Finally, match patterns can accept *pattern guards* to further refine the