Skip to content

Commit 1e0ae1e

Browse files
authored
Replace term "sample" with "example" for error references in range [C2021, C2040]
1 parent e4a17e4 commit 1e0ae1e

10 files changed

+17
-17
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ The character used as the exponent of a floating-point constant is not a valid n
1616

1717
## Example
1818

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

2121
```cpp
2222
// C2021.cpp

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ To resolve this error, make sure all declarations and definitions of the type us
1717

1818
## Example
1919

20-
The following sample generates C2023:
20+
The following example generates C2023:
2121

2222
```cpp
2323
// C2023.cpp

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ To resolve this error, remove the **`alignas`** specifier.
1717

1818
## Example
1919

20-
The following sample generates C2024:
20+
The following example generates C2024:
2121

2222
```cpp
2323
// C2024.cpp

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ A type cannot be used until it is defined. To resolve the error, be sure the typ
1616

1717
## Examples
1818

19-
The following sample generates C2027.
19+
The following example generates C2027.
2020

2121
```cpp
2222
// C2027.cpp
@@ -38,7 +38,7 @@ int main() {
3838
3939
It is possible to declare a pointer to a declared but undefined type. But C++ does not allow a reference to an undefined type.
4040
41-
The following sample generates C2027.
41+
The following example generates C2027.
4242
4343
```cpp
4444
// C2027_b.cpp

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ The structure or union has a member function, which is allowed in C++ but not in
1616

1717
## Example
1818

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

2121
```c
2222
// C2032.c

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ The bit field was declared as a pointer, which is not allowed.
1616

1717
## Example
1818

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

2121
```cpp
2222
// C2033.cpp

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ The number of bits in the bit-field declaration exceeds the size of the base typ
1616

1717
## Example
1818

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

2121
```cpp
2222
// C2034.cpp

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ An operation on `identifier` requires the size of the data object, which cannot
1616

1717
## Examples
1818

19-
The following sample generates C2036.
19+
The following example generates C2036.
2020

2121
```c
2222
// C2036.c
@@ -31,7 +31,7 @@ int main() {
3131
}
3232
```
3333

34-
The following sample generates C2036.
34+
The following example generates C2036.
3535

3636
```cpp
3737
// C2036_2.cpp

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ The code incorrectly calls or refers to a member of a structure, class, or union
1515

1616
## Examples
1717

18-
The following sample generates C2039:
18+
The following example generates C2039:
1919

2020
```cpp
2121
// C2039.cpp
@@ -29,7 +29,7 @@ int main() {
2929
}
3030
```
3131
32-
The following sample generates C2039:
32+
The following example generates C2039:
3333
3434
```cpp
3535
// C2039_b.cpp
@@ -42,7 +42,7 @@ int main() {
4242
}
4343
```
4444

45-
The following sample generates C2039:
45+
The following example generates C2039:
4646

4747
```cpp
4848
// C2039_c.cpp
@@ -73,7 +73,7 @@ public class B {
7373
};
7474
```
7575

76-
The following sample generates C2039 when it uses the previously defined C# component's default indexer incorrectly from C++/CLI:
76+
The following example generates C2039 when it uses the previously defined C# component's default indexer incorrectly from C++/CLI:
7777

7878
```cpp
7979
// C2039_e.cpp
@@ -90,7 +90,7 @@ int main() {
9090
}
9191
```
9292

93-
C2039 can also occur if you use generics. The following sample generates C2039:
93+
C2039 can also occur if you use generics. The following example generates C2039:
9494

9595
```cpp
9696
// C2039_f.cpp
@@ -115,7 +115,7 @@ int main() {
115115
116116
C2039 can occur when you try to release managed or unmanaged resources. For more information, see [Destructors and finalizers](../../dotnet/how-to-define-and-consume-classes-and-structs-cpp-cli.md#BKMK_Destructors_and_finalizers).
117117
118-
The following sample generates C2039:
118+
The following example generates C2039:
119119
120120
```cpp
121121
// C2039_g.cpp

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ An expression involving the specified operands has incompatible operand types or
1616

1717
## Example
1818

19-
This sample generates C2040 and shows how to fix it.
19+
This example generates C2040 and shows how to fix it.
2020

2121
```cpp
2222
// C2040.cpp

0 commit comments

Comments
 (0)