From 38915c6c13ea64ebcdd867b914f09db2feb9b0fa Mon Sep 17 00:00:00 2001 From: Glen Whitney Date: Mon, 26 Aug 2024 20:29:29 +0000 Subject: [PATCH] Update Examples --- Examples.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Examples.md b/Examples.md index 1467df0..8e95f58 100644 --- a/Examples.md +++ b/Examples.md @@ -1007,4 +1007,4 @@ let Foo as the spirit moves you. #### if-let -It seems the only new point relevant to Husht that arises here is the need to try to do auto-import for destructuring if-let (and maybe just destructuring lets as well), so that if Foo is a enum with variants Bar and Baz, and `a` is of type Foo, then you can write just `if let Bar = a ...` rather than `if let Foo::Bar = a ...`. +It seems the only new point relevant to Husht that arises here is the need to try to do auto-import for destructuring if-let (and maybe just destructuring lets as well), so that if Foo is a enum with variants Bar and Baz, and `a` is of type Foo, then you can write just `if let Bar = a ...` rather than `if let Foo::Bar = a ...`. (To be clear, the intention is to tightly scope these auto-imports so that the name Bar doesn't "leak" into the surrounding code from places in which there is a clear implication (such as destructuring a Foo) that they should be in scope.