dotnet / docs

This repository contains .NET Documentation.
https://learn.microsoft.com/dotnet
Creative Commons Attribution 4.0 International
4.21k stars 5.86k forks source link

Confusing code comment #30133

Open GitHubPang opened 2 years ago

GitHubPang commented 2 years ago

In the last code snippet of the page, the comment says:

// Same as previous example except we use the entire last name as a key.

That is quite confusing because there is no "previous example" on the page that's talking about student at all.

Note that the same snippet also appears on this page, which may explain why it says "previous example".


Document Details

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

BillWagner commented 2 years ago

Thanks for noting this @GitHubPang

I'll address this after finishing the C# 11 updates.