Skip to content

Commit 933dfe8

Browse files
authored
Replace term "sample" with "example" for warning references in range [C4231, C4270]
1 parent d312b4a commit 933dfe8

15 files changed

+18
-18
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ A keyword in the C++ specification is not implemented in the Microsoft C++ compi
1616

1717
## Example
1818

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

2121
```cpp
2222
// C4237.cpp

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ C4244 can also fire at level 3, and 4; see [Compiler Warning (levels 3 and 4) C4
2020

2121
## Example
2222

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

2525
```cpp
2626
// C4244_level2.cpp

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ int main() {
4242
}
4343
```
4444
45-
The following sample generates C4250.
45+
The following example generates C4250.
4646
4747
```cpp
4848
// C4250_b.cpp
@@ -73,7 +73,7 @@ int main() {
7373
}
7474
```
7575

76-
This sample shows a more complex situation. The following sample generates C4250.
76+
This example shows a more complex situation. The following example generates C4250.
7777

7878
```cpp
7979
// C4250_c.cpp

docs/error-messages/compiler-warnings/compiler-warning-level-3-c4243.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ A pointer to a derived class is converted to a pointer to a base class, but the
1515

1616
## Example
1717

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

2020
```cpp
2121
// C4243.cpp

docs/error-messages/compiler-warnings/compiler-warning-level-3-c4265.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ This warning is off by default. For more information, see [Compiler Warnings Tha
1717

1818
## Example
1919

20-
The following sample generates C4265:
20+
The following example generates C4265:
2121

2222
```cpp
2323
// C4265.cpp

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Under Microsoft extensions (/Ze), you can give a nonstatic value as the address
1616

1717
## Example
1818

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

2121
```c
2222
// C4232.c

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ This type conversion is not allowed by the C++ standard, but it is permitted her
1616

1717
## Examples
1818

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

2121
```cpp
2222
// C4239.cpp
@@ -34,7 +34,7 @@ void func(void) {
3434
3535
Conversion from integral type to enum type is not strictly allowed.
3636
37-
The following sample generates C4239.
37+
The following example generates C4239.
3838
3939
```cpp
4040
// C4239b.cpp

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ For more information on C4242, see [Common Compiler Errors](/windows/win32/WinPr
1919

2020
## Example
2121

22-
The following sample generates C4242:
22+
The following example generates C4242:
2323

2424
```cpp
2525
// C4242.cpp

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ You tried to convert a **`signed const`** type that has a negative value to an *
1616

1717
## Example
1818

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

2121
```cpp
2222
// C4245.cpp

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ This warning is off by default. For more information, see [Compiler Warnings Tha
1717

1818
## Example
1919

20-
The following sample generates C4254:
20+
The following example generates C4254:
2121

2222
```cpp
2323
// C4254.cpp

0 commit comments

Comments
 (0)