Skip to content

Commit 445cda5

Browse files
author
Andrew Shymanel
authored
Correct documentation for C99 comments
From the 'Microsoft extensions to C and C++' article: > C99 comments are unaffected by `/Za` and cause no diagnostic at any level. https://learn.microsoft.com/en-us/cpp/build/reference/microsoft-extensions-to-c-and-cpp?view=msvc-170#single-line-comments
1 parent 3dc8003 commit 445cda5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/c-language/c-comments.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ While you can use comments to render certain lines of code inactive for test pur
5151

5252
**Microsoft Specific**
5353

54-
The Microsoft compiler also supports single-line comments preceded by two forward slashes (__//__). If you compile with /Za (ANSI standard), these comments generate errors. These comments cannot extend to a second line.
54+
The Microsoft compiler also supports single-line comments preceded by two forward slashes (__//__). These comments cannot extend to a second line.
5555

5656
```C
5757
// This is a valid comment

0 commit comments

Comments
 (0)