From 7ab184c0ec27485ec734900946d9b2e1e2a91428 Mon Sep 17 00:00:00 2001 From: Pand9 Date: Thu, 30 Jul 2020 18:27:09 +0200 Subject: [PATCH] patterns.md - add word "underscore" to _ paragraph Add word "underscore" for better search accessibility. `_` is a short, widely-used symbol and I didn't even try to search for it. I think this simple change can prevent someone (would have prevented me) from being confused & asking on Reddit :) --- src/patterns.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/patterns.md b/src/patterns.md index 47131d45c..88940641c 100644 --- a/src/patterns.md +++ b/src/patterns.md @@ -282,7 +282,7 @@ it is dereferenced and this process repeats. > _WildcardPattern_ :\ >    `_` -The _wildcard pattern_ matches any value. It is used to ignore values when they don't +The _wildcard pattern_ (an underscore symbol) matches any value. It is used to ignore values when they don't matter. Inside other patterns it matches a single data field (as opposed to the `..` which matches the remaining fields). Unlike identifier patterns, it does not copy, move or borrow the value it matches.