From d88e8bb9ea7d8a3c03588f5e6515bf836a7d184d Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Sat, 29 Aug 2020 11:03:16 +0200 Subject: [PATCH] doc: document comma in match --- doc/docs.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/doc/docs.md b/doc/docs.md index 8b34a21a19..b594f6dcc9 100644 --- a/doc/docs.md +++ b/doc/docs.md @@ -891,8 +891,7 @@ enum Color { fn is_red_or_blue(c Color) bool { return match c { - .red { true } - .blue { true } + .red, .blue { true } // comma can be used to test multiple values .green { false } } }