Skip to content

Commit 837a8f9

Browse files
authored
Replace term "sample" with "example" for error references in range [C2141, C2160]
1 parent 06a01ad commit 837a8f9

14 files changed

+17
-17
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ An array exceeds the 2GB limit. Reduce the size of the array.
1616

1717
## Example
1818

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

2121
```cpp
2222
// C2141.cpp

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ One declaration of the function contains a variable parameter list. Another decl
1616

1717
## Example
1818

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

2121
```c
2222
// C2142.c

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ You may also see C2144 if you are trying to do type forwarding. See [Type Forwar
2222

2323
## Examples
2424

25-
The following sample generates C2144, and shows a way to fix it:
25+
The following example generates C2144, and shows a way to fix it:
2626

2727
```cpp
2828
// C2144.cpp
@@ -35,7 +35,7 @@ REF struct MyStruct0; // C2144
3535
REF1 MyStruct1;
3636
```
3737
38-
The following sample generates C2144, and shows a way to fix it:
38+
The following example generates C2144, and shows a way to fix it:
3939
4040
```cpp
4141
// C2144_2.cpp

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ This error may be caused by a typographical error. Error [C2065](../../error-mes
2222

2323
## Examples
2424

25-
The following sample generates C2146.
25+
The following example generates C2146.
2626

2727
```cpp
2828
// C2146.cpp
@@ -41,7 +41,7 @@ int main() {
4141
4242
This error can also be generated as a result of compiler conformance work that was done for Visual Studio .NET 2003: missing **`typename`** keyword.
4343
44-
The following sample compiles in Visual Studio .NET 2002 but will fail in Visual Studio .NET 2003:
44+
The following example compiles in Visual Studio .NET 2002 but will fail in Visual Studio .NET 2003:
4545
4646
```cpp
4747
// C2146b.cpp
@@ -66,7 +66,7 @@ You will also see this error as a result of compiler conformance work that was d
6666

6767
The use of `T` from the primary template is not allowed in the explicit specialization. For code to be valid in the Visual Studio .NET 2003 and Visual Studio .NET, replace all instances of the template parameter in the specialization with the explicitly specialized type.
6868

69-
The following sample compiles in Visual Studio .NET but will fail in Visual Studio .NET 2003:
69+
The following example compiles in Visual Studio .NET but will fail in Visual Studio .NET 2003:
7070

7171
```cpp
7272
// C2146_c.cpp

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ An identifier was used that is now a reserved keyword in the language.
1616

1717
## Example
1818

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

2121
```cpp
2222
// C2147.cpp

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ An array exceeds the limit. Reduce the size of the array.
1616

1717
## Example
1818

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

2121
```cpp
2222
// C2148.cpp

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Bit fields can have zero width only if unnamed.
1616

1717
## Example
1818

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

2121
```cpp
2222
// C2149.cpp

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ The base type for a bit-field is required to be **`int`**, **`signed int`**, or
1616

1717
## Example
1818

19-
This sample shows how you might encounter C2150, and how you can fix it:
19+
This example shows how you might encounter C2150, and how you can fix it:
2020

2121
```cpp
2222
// C2150.cpp

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Hexadecimal and binary literals must contain at least one digit after the leadin
1515

1616
## Example
1717

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

2020
```cpp
2121
// C2153.cpp

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ A pragma that must be specified at a global level (outside a function body) is w
1616

1717
## Example
1818

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

2121
```cpp
2222
// C2156.cpp

0 commit comments

Comments
 (0)