Skip to content

Commit 52c448f

Browse files
authored
Replace term "sample" with "example" for warning references in range [C4701, C4750]
1 parent cea02c8 commit 52c448f

18 files changed

+21
-21
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ This warning is automatically promoted to an error. If you wish to modify this b
2222

2323
## Example
2424

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

2727
```cpp
2828
// C4716.cpp

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Every path through a function contains a call to the function. Since there is no
1616

1717
## Example
1818

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

2121
```cpp
2222
// C4717.cpp

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ To resolve, remove the function call that causes the destructor to not return.
1717

1818
## Example
1919

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

2222
```cpp
2323
// C4722.cpp

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ To safely use **`__m64`** types and floating-point types in the same function, e
1818

1919
## Example
2020

21-
The following sample generates C4730:
21+
The following example generates C4730:
2222

2323
```cpp
2424
// C4730.cpp

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ A frame pointer register was modified. You must save and restore the register in
1616

1717
## Example
1818

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

2121
```cpp
2222
// C4731.cpp

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ To resolve this warning, either remove the FS:0 definition or turn off this warn
1818

1919
## Example
2020

21-
The following sample generates C4733:
21+
The following example generates C4733:
2222

2323
```cpp
2424
// C4733.cpp

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ To resolve this warning, only assign a value to a variable whose size can accomm
1818

1919
## Example
2020

21-
The following sample generates C4739:
21+
The following example generates C4739:
2222

2323
```cpp
2424
// C4739.cpp

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ struct X {
3232
} global;
3333
```
3434

35-
The following sample generates C4742.
35+
The following example generates C4742.
3636

3737
```c
3838
// C4742b.c

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ To resolve this warning, either use the same type definition or use different na
2020

2121
## Example
2222

23-
The following sample generates C4743. To compile it, place both files in the same folder, then run this command in a developer command prompt:
23+
The following example generates C4743. To compile it, place both files in the same folder, then run this command in a developer command prompt:
2424

2525
```cmd
2626
cl /EHsc /W1 /GL /O2 C4743a.cpp C4743b.cpp

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,19 @@ An external variable referenced or defined in two files has different types in t
1616
C4744 is emitted only when files are compiled with /GL. For more information, see [/GL (Whole Program Optimization)](../../build/reference/gl-whole-program-optimization.md).
1717

1818
> [!NOTE]
19-
> C4744 usually occurs in C (not C++) files, because in C++ a variable name is decorated with type information. When the sample (below) is compiles as C++, you'll get linker error LNK2019.
19+
> C4744 usually occurs in C (not C++) files, because in C++ a variable name is decorated with type information. When the example (below) is compiles as C++, you'll get linker error LNK2019.
2020
2121
## Example
2222

23-
This sample contains the first definition.
23+
This example contains the first definition.
2424

2525
```c
2626
// C4744.c
2727
// compile with: /c /GL
2828
int global;
2929
```
3030

31-
The following sample generates C4744.
31+
The following example generates C4744.
3232

3333
```c
3434
// C4744b.c

0 commit comments

Comments
 (0)