docs icon indicating copy to clipboard operation
docs copied to clipboard

Inconsistency between page content and code snippet

Open mijpeterson opened this issue 4 years ago • 2 comments

The content "Note that when a union pattern is covered by a guard, the guard applies to all of the patterns, not just the last one. For example, given the following code, the guard when a > 12 applies to both A a and B a:" does not match the code snippet directly below, which actually uses the condition a > 41.

a > 12 should be updated to a > 41


Document Details

⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

mijpeterson avatar Sep 23 '22 22:09 mijpeterson

Thanks for noting this @mijpeterson

I've added this to our backlog, and added the "help wanted" label for public contributors. You're suggestion is the correct fix.

BillWagner avatar Oct 03 '22 14:10 BillWagner

Hello! First time in the hacktoberfest. If this is still open I'd like to give it a go.

jonathlan avatar Oct 03 '22 18:10 jonathlan