Skip to content

Commit 39250ac

Browse files
authored
Fix and improve example in C3083 error reference
1 parent 4243428 commit 39250ac

1 file changed

Lines changed: 6 additions & 8 deletions

File tree

docs/error-messages/compiler-errors-2/compiler-error-c3083.md

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,17 @@ The qualification used is invalid. Ensure that no extra symbols were used in the
1616

1717
## Example
1818

19-
The following sample generates C3083.
19+
The following example generates C3083:
2020

2121
```cpp
2222
// C3083.cpp
2323
// compile with: /c
24-
struct N {
25-
~N();
26-
};
2724

28-
struct N1 {
29-
~N1();
25+
struct S
26+
{
27+
S();
3028
};
3129

32-
N::N::~N() {} // C3083
33-
N1::~N1() {} // OK
30+
S::Extra::S() {} // C3083
31+
S::S() {} // OK
3432
```

0 commit comments

Comments
 (0)