Skip to content

Commit e7b3167

Browse files
authored
Tidy up example in C2018 error reference
1 parent a96e162 commit e7b3167

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

docs/error-messages/compiler-errors-1/compiler-error-c2018.md

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,12 @@ The source file contains an unexpected ASCII character, which is identified by i
1616

1717
## Example
1818

19-
The following sample generates C2018:
19+
The following example generates C2018:
2020

2121
```cpp
2222
// C2018.cpp
23-
int main() {
24-
@ // C2018
25-
}
26-
```
27-
28-
Possible resolution:
29-
30-
```cpp
31-
// C2018b.cpp
32-
int main() {
33-
23+
int main()
24+
{
25+
@ // C2018
3426
}
3527
```

0 commit comments

Comments
 (0)