Skip to content

Commit c901ee3

Browse files
authored
Replace term "sample" with "example" for error references in range [C2851, C2880]
1 parent 055bafe commit c901ee3

19 files changed

+20
-20
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ The `#pragma hdrstop` gives an invalid filename. The pragma can be followed by a
1616

1717
## Example
1818

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

2121
```cpp
2222
// C2854.cpp

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ This error can be caused by an `#include "filename"` statement in a conditional
2020

2121
## Example
2222

23-
In typical usage, one source file in your project is designated as the PCH source file, and one header file is used as the PCH header file. A typical PCH header file has all of the library headers used in your project, but not local headers that are still under development. In this sample, the PCH header file is named *my_pch.h*.
23+
In typical usage, one source file in your project is designated as the PCH source file, and one header file is used as the PCH header file. A typical PCH header file has all of the library headers used in your project, but not local headers that are still under development. In this example, the PCH header file is named *my_pch.h*.
2424

2525
```cpp
2626
// my_pch.h

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ A function parameter cannot be of type **`void`**.
1515

1616
## Example
1717

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

2020
```cpp
2121
// C2860.cpp

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ The compiler encountered the interface keyword or deduced a struct as an interfa
1616

1717
## Example
1818

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

2121
```cpp
2222
// C2861.cpp

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Protected and private members may be accessed only from other member functions.
1616

1717
## Example
1818

19-
The following sample will generate C2862:
19+
The following example will generate C2862:
2020

2121
```cpp
2222
// C2862.cpp

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Declaring friends on an interface is not allowed.
1616

1717
## Example
1818

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

2121
```cpp
2222
// C2863.cpp

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ To initialize a **`static`** data member that's defined as **`volatile`**, non-*
1616

1717
## Example
1818

19-
This sample generates C2864:
19+
This example generates C2864:
2020

2121
```cpp
2222
// C2864.cpp
@@ -32,7 +32,7 @@ private:
3232
};
3333
```
3434
35-
This sample shows how to fix C2864:
35+
This example shows how to fix C2864:
3636
3737
```cpp
3838
// C2864b.cpp

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ A **`using`** directive is applied to something other than a namespace.
1616

1717
## Example
1818

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

2121
```cpp
2222
// C2867.cpp

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ A [using declaration](../../cpp/using-declaration.md) requires a *qualified name
1616

1717
## Example
1818

19-
The following sample generates C2868 and also shows correct usage:
19+
The following example generates C2868 and also shows correct usage:
2020

2121
```cpp
2222
// C2868.cpp

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ You cannot reuse a name already used as a namespace.
1616

1717
## Example
1818

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

2121
```cpp
2222
// C2869.cpp

0 commit comments

Comments
 (0)