Skip to content

Commit 0f85397

Browse files
authored
Replace term "sample" with "example" for error references in range [C2101, C2120]
1 parent 2b194ac commit 0f85397

14 files changed

+15
-15
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ The [address-of operator (**`&`**)](../../cpp/address-of-operator-amp.md) must h
1515

1616
## Example
1717

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

2020
```cpp
2121
// C2101.cpp

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ The [address-of operator (**`&`**)](../../cpp/address-of-operator-amp.md) must h
1515

1616
## Example
1717

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

2020
```cpp
2121
// C2102.cpp

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ You cannot take the address of a register.
1515

1616
## Example
1717

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

2020
```c
2121
// C2103.c

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ You cannot take the address of a bit field.
1616

1717
## Example
1818

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

2121
```cpp
2222
// C2104.cpp

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ The operator must have an l-value as operand.
1616

1717
## Examples
1818

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

2121
```cpp
2222
// C2105.cpp
@@ -33,7 +33,7 @@ int main() {
3333
}
3434
```
3535

36-
The following sample generates C2105:
36+
The following example generates C2105:
3737

3838
```cpp
3939
// C2105b.cpp

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ The operator must have an l-value as its left operand.
1616

1717
## Example
1818

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

2121
```cpp
2222
// C2106.cpp

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ A subscript is applied to an expression that does not evaluate to a pointer.
1818

1919
C2107 can occur if you incorrectly use the **`this`** pointer of a value type to access the type's default indexer. 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).
2020

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

2323
```cpp
2424
// C2107.cpp

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ The array subscript is a non-integer expression.
1818

1919
C2108 can occur if you incorrectly use the **`this`** pointer of a value type to access the type's default indexer. 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).
2020

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

2323
```cpp
2424
// C2108.cpp

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ The subscript was used on a variable that was not an array.
1616

1717
## Example
1818

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

2121
```cpp
2222
// C2109.cpp

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ An attempt was made to add two pointer values using the plus (`+`) operator.
1515

1616
## Example
1717

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

2020
```cpp
2121
// C2110.cpp

0 commit comments

Comments
 (0)