dotnet / dotnet-api-docs

.NET API reference documentation (.NET 5+, .NET Core, .NET Framework)
https://docs.microsoft.com/dotnet/api/
Other
727 stars 1.56k forks source link

Some Max exception documentation is incorrect #3978

Open corranrogue9 opened 4 years ago

corranrogue9 commented 4 years ago
GrabYourPitchforks commented 4 years ago

@mairaw Can you transfer this issue to the docs repo? Thanks! :)

danmoseley commented 4 years ago

@GrabYourPitchforks I think we have rights to do that now.

danmoseley commented 4 years ago

@corranrogue9 any interest in offering a PR for any of this?

corranrogue9 commented 4 years ago

@danmosemsft, if you can point me to where the changes need to be made and some guidelines documents, I would be happy to offer a PR

danmoseley commented 4 years ago

@corranrogue9 there is a contributing guide here https://github.com/dotnet/docs/blob/master/CONTRIBUTING.md

To quickly find the file to edit, just click the "edit" button in the top right of the topic. For example for Enumerable.Max: https://docs.microsoft.com/en-us/dotnet/api/system.linq.enumerable.max?view=netframework-4.8#System_Linq_Enumerable_Max__1_System_Collections_Generic_IEnumerable___0__ this goes to https://github.com/dotnet/dotnet-api-docs/blob/master/xml/System.Linq/Enumerable.xml

Hopefully this gets you started!

carlossanlop commented 4 years ago

@corranrogue9 will you get a chance to offer a PR?

cc @eiriktsarpalis @adamsitnik area owners.

adamsitnik commented 3 years ago

@carlossanlop is my understanding correct that it would be the best to wait until you finish your work on backporting the docs to dotnet/runtime source and then add this as triple slash comments to source in dotnet/runtime?

carlossanlop commented 3 years ago

No, you're not blocked to offer a fix in dotnet-api-docs. Just let me know so I make sure my backports include your amends.

adamsitnik commented 3 years ago

after thinking about it for a while I decided to wait until the source code becomes the single source of truth

it's just much easier to find all the throwing public methods and add the annotations in the comments rather than updating the doc

perhaps we could even add an analyser for that? at least for the simple cases like arguments validation throws?