Skip to content

Commit 5742462

Browse files
authored
Replace term "sample" with "example" for error references in range [C2911, C2940]
1 parent dd4064c commit 5742462

18 files changed

+19
-19
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Inside a namespace, class, or function, you can only define a member of the same
1616

1717
## Example
1818

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

2121
```cpp
2222
// C2911.cpp

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ You cannot specialize a non-template function.
1616

1717
## Examples
1818

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

2121
```cpp
2222
// C2912.cpp

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ You cannot specialize a non-template class.
1616

1717
## Example
1818

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

2121
```cpp
2222
// C2913.cpp

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ The compiler cannot determine which overloaded functions to use for a generic or
1616

1717
## Examples
1818

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

2121
```cpp
2222
// C2914.cpp
@@ -29,7 +29,7 @@ void h() { g(f); } // C2914
2929
// void h() { g<int>(f); }
3030
```
3131
32-
C2914 can also occur when using generics. The following sample generates C2914:
32+
C2914 can also occur when using generics. The following example generates C2914:
3333
3434
```cpp
3535
// C2914b.cpp

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ This error is obsolete in Visual Studio 2022 and later versions.
1818

1919
## Example
2020

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

2323
```cpp
2424
// C2917.cpp

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ A generic or template class has multiple declarations, which are not equivalent.
1616

1717
## Examples
1818

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

2121
```cpp
2222
// C2920.cpp

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ A generic or template class has multiple declarations that are not equivalent. T
1616

1717
## Examples
1818

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

2121
```cpp
2222
// C2921.cpp

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ The argument list is missing a type needed to instantiate the template or generi
1616

1717
## Examples
1818

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

2121
```cpp
2222
// C2923.cpp

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ You cannot explicitly instantiate an identifier while preventing it from being i
1616

1717
## Example
1818

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

2121
```cpp
2222
// C2929.cpp

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ This error can be caused if braces are improperly matched.
1818

1919
## Examples
2020

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

2323
```cpp
2424
// C2930.cpp

0 commit comments

Comments
 (0)