Skip to content

Commit 22b7bd8

Browse files
authored
Replace term "sample" with "example" for error references in range [C2881, C2910]
1 parent cf7b65d commit 22b7bd8

21 files changed

+26
-26
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ You cannot use the same name as an alias for two namespaces.
1616

1717
## Example
1818

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

2121
```cpp
2222
// C2881.cpp

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ You tried to use the name of a namespace in an expression.
1616

1717
## Example
1818

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

2121
```cpp
2222
// C2882.cpp

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ You tried to define a function more than once. The first definition was made fro
1616

1717
## Example
1818

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

2121
```cpp
2222
// C2883.cpp

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ You tried to define a function more than once. The first definition is a local d
1616

1717
## Example
1818

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

2121
```cpp
2222
// C2884.cpp

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ This error can be generated as a result of compiler conformance work that was do
1818

1919
## Examples
2020

21-
The following sample generates C2885.
21+
The following example generates C2885.
2222

2323
```cpp
2424
// C2885.cpp
@@ -49,7 +49,7 @@ int main () {
4949
5050
If you use the **`using`** keyword with a class member, C++ requires you to define that member inside another class (a derived class).
5151
52-
The following sample generates C2885.
52+
The following example generates C2885.
5353
5454
```cpp
5555
// C2885_b.cpp

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ A **`using`** declaration uses a symbol, such as a namespace name. A **`using`**
1616

1717
## Example
1818

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

2121
```cpp
2222
// C2886.cpp

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ A symbol belonging to namespace A must be defined in a namespace that encloses A
1515

1616
## Example
1717

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

2020
```cpp
2121
// C2888.cpp

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ A reference class can only have one base class.
1616

1717
## Example
1818

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

2121
```cpp
2222
// C2890.cpp

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Templated member functions are not valid in a class that is defined in a functio
1616

1717
## Example
1818

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

2121
```cpp
2222
// C2892.cpp

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ In general, the way to resolve a C2893 error is to review the function's signatu
1717

1818
## Example
1919

20-
C2893 occurs because `f`'s template parameter `T` is deduced to be `std::map<int,int>`, but `std::map<int,int>` has no member `data_type` (`T::data_type` can not be instantiated with `T = std::map<int,int>`.). The following sample generates C2893.
20+
C2893 occurs because `f`'s template parameter `T` is deduced to be `std::map<int,int>`, but `std::map<int,int>` has no member `data_type` (`T::data_type` can not be instantiated with `T = std::map<int,int>`.). The following example generates C2893.
2121

2222
```cpp
2323
// C2893.cpp

0 commit comments

Comments
 (0)