F.46: add note regarding the return of main (see #1896)

This commit is contained in:
Sergey Zubkov
2022-04-07 16:54:17 -04:00
parent 4a386f0a65
commit dc8f95d608

View File

@@ -3749,6 +3749,7 @@ Declaring `main` (the one global `main` of a program) `void` limits portability.
##### Note ##### Note
We mention this only because of the persistence of this error in the community. We mention this only because of the persistence of this error in the community.
Note that despite its non-void return type, the main function does not require an explicit return statement.
##### Enforcement ##### Enforcement