Skip to content

Commit 02fdfa6

Browse files
authored
Replace term "sample" with "example" for error references in range [C2671, C2700]
1 parent 22a615c commit 02fdfa6

19 files changed

+22
-22
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ A **`static`** member function tried to access **`this`**.
1616

1717
## Example
1818

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

2121
```cpp
2222
// C2671.cpp

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ A global function tried to access **`this`**.
1616

1717
## Example
1818

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

2121
```cpp
2222
// C2673.cpp

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ A generic was declared incorrectly. For more information, see [Generics](../../e
1616

1717
## Example
1818

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

2121
```cpp
2222
// C2674.cpp

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ C2675 can also occur when using a unary operator, and the type does not define t
1616

1717
## Example
1818

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

2121
```cpp
2222
// C2675.cpp

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ To use the operator, you must overload it for the specified type or define a con
1616

1717
## Examples
1818

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

2121
```cpp
2222
// C2676.cpp
@@ -50,7 +50,7 @@ C2676 can also occur if you attempt to do pointer arithmetic on the **`this`** p
5050
5151
The **`this`** pointer is of type handle in a reference type. For more information, see [Semantics of the `this` pointer](../../dotnet/how-to-define-and-consume-classes-and-structs-cpp-cli.md#BKMK_Semantics_of_the_this_pointer).
5252
53-
The following sample generates C2676.
53+
The following example generates C2676.
5454
5555
```cpp
5656
// C2676_a.cpp

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ To use the operator, you must overload it for the specified type or define a con
1616

1717
## Example
1818

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

2121
```cpp
2222
// C2677.cpp

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ C2678 can occur when the left-hand operand is const-qualified but the operator i
1818

1919
## Examples
2020

21-
The following sample generates C2678 and shows how to fix it:
21+
The following example generates C2678 and shows how to fix it:
2222

2323
```cpp
2424
// C2678a.cpp
@@ -44,7 +44,7 @@ int main() {
4444
4545
C2678 can also occur if you do not pin a native member before calling a member function on it.
4646
47-
The following sample generates C2678 and shows how to fix it.
47+
The following example generates C2678 and shows how to fix it.
4848
4949
```cpp
5050
// C2678.cpp

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ To use the operator, you must overload it for the specified type or define a con
1616

1717
## Example
1818

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

2121
```cpp
2222
// C2679.cpp

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ A casting operator tried to convert to a type that is not a pointer or reference
1616

1717
## Examples
1818

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

2121
```cpp
2222
// C2680.cpp

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ A casting operator tried to convert from an invalid type. For example, if you us
1616

1717
## Example
1818

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

2121
```cpp
2222
// C2681.cpp

0 commit comments

Comments
 (0)