The "Main()" documentation is misleading about async #40972
Labels
doc-enhancement
Improve the current content [org][type][category]
dotnet-csharp/svc
fundamentals/subsvc
Pri1
High priority, do before Pri2 and Pri3
Type of issue
Other (describe below)
Description
In the documentation Main() and command-line arguments, I found the part about async misleading.
For example this part :
Like explained by :
This other signatures is also valid :
Also, the return type of a method is not part of the signature of the method. I think the term declaration is better in this context.
Moreover, the boilerplate code is :
The result need to be returned, so this boilerplate code should be :
If you agree, I can do a PR to improve this page.
Page URL
https://learn.microsoft.com/en-us/dotnet/csharp/fundamentals/program-structure/main-command-line
Content source URL
https://github.com/dotnet/docs/blob/main/docs/csharp/fundamentals/program-structure/main-command-line.md
Document Version Independent Id
d942d65a-87e4-1525-bd94-b005f1b7cbac
Article author
@BillWagner
Metadata
The text was updated successfully, but these errors were encountered: