Skip to content

Commit f1c6d3d

Browse files
authored
Replace term "sample" with "example" for error references in range [C2201, C2230]
1 parent 5514520 commit f1c6d3d

10 files changed

+12
-12
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ The exported identifier is **`static`**.
1515

1616
## Example
1717

18-
The following sample generates C2286, and shows how to fix it:
18+
The following example generates C2286, and shows how to fix it:
1919

2020
```cpp
2121
// C2201.cpp

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ With the **/Za** (ANSI) option, the **`delete`** operator can delete an entire a
1616

1717
## Example
1818

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

2121
```cpp
2222
// C2203.cpp

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ A **`typedef`** is used to define a function type.
1616

1717
## Example
1818

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

2121
```cpp
2222
// C2206.cpp

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ An identifier resolving to a type name is in an aggregate declaration, but the c
1616

1717
## Example
1818

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

2121
```cpp
2222
// C2208.cpp

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ The argument modifying **`__based`** is invalid.
1616

1717
## Example
1818

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

2121
```cpp
2222
// C2213.cpp

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Two keywords that are mutually exclusive were used together.
1616

1717
## Examples
1818

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

2121
```cpp
2222
// C2216.cpp
@@ -27,7 +27,7 @@ ref struct Y1 {
2727
};
2828
```
2929
30-
The following sample generates C2216.
30+
The following example generates C2216.
3131
3232
```cpp
3333
// C2216b.cpp
@@ -38,7 +38,7 @@ public ref class X {
3838
};
3939
```
4040

41-
The following sample generates C2216.
41+
The following example generates C2216.
4242

4343
```cpp
4444
// C2216c.cpp

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ The first function attribute requires the second attribute.
1616

1717
## Example
1818

19-
C2217 can occur if you attempt to bind a delegate to a CLR function that takes a variable number of arguments. If the function also has a param array overload, use that instead. The following sample generates C2217.
19+
C2217 can occur if you attempt to bind a delegate to a CLR function that takes a variable number of arguments. If the function also has a param array overload, use that instead. The following example generates C2217.
2020

2121
```cpp
2222
// C2217.cpp

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ The operand to the left of `->` is not a pointer to a class, structure, or union
1616

1717
## Example
1818

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

2121
```cpp
2222
// C2227.cpp

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ The operand to the left of the period (.) is not a class, structure, or union.
1616

1717
## Example
1818

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

2121
```cpp
2222
// C2228.cpp

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ If the zero sized array is not the last member of the struct, the compiler can't
2020

2121
## Example
2222

23-
The following sample generates C2229:
23+
The following example generates C2229:
2424

2525
```cpp
2626
// C2229.cpp

0 commit comments

Comments
 (0)