Skip to content

Commit b86736f

Browse files
authored
Replace term "sample" with "example" for warning references in range [C4121, C4160]
1 parent 91296d7 commit b86736f

9 files changed

+9
-9
lines changed

docs/error-messages/compiler-warnings/compiler-warning-level-1-c4129.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ The C++ standard, in section 2.13.2 discusses escape sequences.
2020

2121
## Example
2222

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

2525
```cpp
2626
// C4129.cpp

docs/error-messages/compiler-warnings/compiler-warning-level-1-c4142.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ To fix by checking the following possible causes:
2222

2323
## Example
2424

25-
The following sample generates C4142:
25+
The following example generates C4142:
2626

2727
```c
2828
// C4142.c

docs/error-messages/compiler-warnings/compiler-warning-level-1-c4144.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ The specified relational expression was used as the control expression of a [swi
1616

1717
## Example
1818

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

2121
```cpp
2222
// C4144.cpp

docs/error-messages/compiler-warnings/compiler-warning-level-1-c4145.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ A **`switch`** statement uses a relational expression as its control expression,
1616

1717
## Example
1818

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

2121
```cpp
2222
// C4145.cpp

docs/error-messages/compiler-warnings/compiler-warning-level-1-c4155.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ The array form of **`delete`** should be used to delete an array. This warning o
1616

1717
## Example
1818

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

2121
```cpp
2222
// C4155.cpp

docs/error-messages/compiler-warnings/compiler-warning-level-2-c4146.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ The [`/sdl` (Enable Additional Security Checks)](../../build/reference/sdl-enabl
2828

2929
## Example
3030

31-
The following sample demonstrates the unexpected behavior that can happen when the compiler generates warning C4146:
31+
The following example demonstrates the unexpected behavior that can happen when the compiler generates warning C4146:
3232

3333
```cpp
3434
// C4146.cpp

docs/error-messages/compiler-warnings/compiler-warning-level-2-c4150.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ The `delete` operator is called to delete a type that was declared but not defin
1515

1616
## Example
1717

18-
The following sample generates C4150 by declaring but not defining `class IncClass`:
18+
The following example generates C4150 by declaring but not defining `class IncClass`:
1919

2020
```cpp
2121
// compile with: /W2

docs/error-messages/compiler-warnings/compiler-warning-level-4-c4127.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ If the controlling expression of a **`while`** loop is a constant because the lo
1818

1919
## Examples
2020

21-
The following sample shows two ways C4127 is generated, and shows how to use a for loop to avoid the warning:
21+
The following example shows two ways C4127 is generated, and shows how to use a for loop to avoid the warning:
2222

2323
```cpp
2424
// C4127.cpp

docs/error-messages/compiler-warnings/compiler-warning-level-4-c4130.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Using the operator with the address of a string literal produces unexpected code
1616

1717
## Example
1818

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

2121
```cpp
2222
// C4130.cpp

0 commit comments

Comments
 (0)