Skip to content

Commit 6b6a21c

Browse files
authored
Replace term "sample" with "example" for error references in range [C2821, C2850]
1 parent e724337 commit 6b6a21c

15 files changed

+15
-15
lines changed

docs/error-messages/compiler-errors-2/compiler-error-c2821.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ The first formal parameter of the [operator new](../../standard-library/new-oper
1616

1717
## Example
1818

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

2121
```cpp
2222
// C2821.cpp

docs/error-messages/compiler-errors-2/compiler-error-c2823.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Templates are not allowed in **`typedef`** definitions.
1616

1717
## Example
1818

19-
The following sample generates C2823, and shows one way to fix it:
19+
The following example generates C2823, and shows one way to fix it:
2020

2121
```cpp
2222
// C2823.cpp

docs/error-messages/compiler-errors-2/compiler-error-c2824.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ With non-based pointers, overloads of operator `new` must return `void *`.
1616

1717
## Example
1818

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

2121
```cpp
2222
// C2824.cpp

docs/error-messages/compiler-errors-2/compiler-error-c2825.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ For example, make sure that your code does not contain a function declaration wh
1818

1919
## Example
2020

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

2323
```cpp
2424
// C2825.cpp

docs/error-messages/compiler-errors-2/compiler-error-c2831.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Only three operators can have default parameters:
2222

2323
## Example
2424

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

2727
```cpp
2828
// C2831.cpp

docs/error-messages/compiler-errors-2/compiler-error-c2833.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ For a list of the operators that you can define in a managed type, see [User-def
1818

1919
## Example
2020

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

2323
```cpp
2424
// C2833.cpp

docs/error-messages/compiler-errors-2/compiler-error-c2835.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ User-defined type conversions cannot take formal parameters.
1515

1616
## Example
1717

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

2020
```cpp
2121
// C2835.cpp

docs/error-messages/compiler-errors-2/compiler-error-c2838.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ A class, structure, or union uses a fully qualified name to redeclare a member o
1616

1717
## Example
1818

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

2121
```cpp
2222
// C2838.cpp

docs/error-messages/compiler-errors-2/compiler-error-c2842.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ For more information, see [User-Defined Operators (C++/CLI)](../../dotnet/user-d
1818

1919
## Example
2020

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

2323
```cpp
2424
// C2842.cpp

docs/error-messages/compiler-errors-2/compiler-error-c2843.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ An instance is needed to take the address of nonstatic data members of a managed
1616

1717
## Example
1818

19-
The following sample generates C2843 and shows how to fix it:
19+
The following example generates C2843 and shows how to fix it:
2020

2121
```cpp
2222
// C2843_2.cpp

0 commit comments

Comments
 (0)