From 8332955ca0eeb28da38d4ec672af4fba8fb62340 Mon Sep 17 00:00:00 2001 From: Kane York Date: Mon, 20 Nov 2023 15:05:04 -0800 Subject: [PATCH 1/2] Reference wildcard patterns from underscore expr These appear in nearly identical locations in source code and have subtly different semantics, so cross link them. --- src/expressions/underscore-expr.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/expressions/underscore-expr.md b/src/expressions/underscore-expr.md index 069f227e9..119ab7fc9 100644 --- a/src/expressions/underscore-expr.md +++ b/src/expressions/underscore-expr.md @@ -8,6 +8,8 @@ Underscore expressions, denoted with the symbol `_`, are used to signify a placeholder in a destructuring assignment. They may only appear in the left-hand side of an assignment. +Note that this is distinct from the [wildcard pattern](../patterns.html#wildcard-pattern). + An example of an `_` expression: ```rust From 7f1e24a45764646504c79176094346eb1925f100 Mon Sep 17 00:00:00 2001 From: Eric Huss Date: Tue, 21 Nov 2023 09:56:04 -0800 Subject: [PATCH 2/2] use md extension instead of html --- src/expressions/underscore-expr.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/expressions/underscore-expr.md b/src/expressions/underscore-expr.md index 119ab7fc9..3d170408b 100644 --- a/src/expressions/underscore-expr.md +++ b/src/expressions/underscore-expr.md @@ -8,7 +8,7 @@ Underscore expressions, denoted with the symbol `_`, are used to signify a placeholder in a destructuring assignment. They may only appear in the left-hand side of an assignment. -Note that this is distinct from the [wildcard pattern](../patterns.html#wildcard-pattern). +Note that this is distinct from the [wildcard pattern](../patterns.md#wildcard-pattern). An example of an `_` expression: