Skip to content

Commit cc1996b

Browse files
authored
Replace term "sample" with "example" for error references in range [C3851, C3890]
1 parent 24cb427 commit cc1996b

24 files changed

+32
-32
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ In code compiled as C++, you cannot use a universal character name that represen
1616

1717
## Example
1818

19-
The following samples generate C3851, and show how to fix it:
19+
The following example generate C3851, and show how to fix it:
2020

2121
```cpp
2222
// C3851.cpp

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ An attempt was made to assign a default initialization as part of an aggregate i
1616

1717
## Example
1818

19-
The following samples generate C3852:
19+
The following example generate C3852:
2020

2121
```cpp
2222
// C3852.cpp

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Cannot assign to a reference through a function because functions are not lvalue
1616

1717
## Example
1818

19-
The following samples generate C3853:
19+
The following example generate C3853:
2020

2121
```cpp
2222
// C3853.cpp

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ A reference cannot be reinitialized. Dereferencing a reference to a function yie
1616

1717
## Example
1818

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

2121
```cpp
2222
// C3854.cpp

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ The compiler found nontype template or generic parameters with different names.
1616

1717
## Examples
1818

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

2121
```cpp
2222
// C3855.cpp

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ The most common cause for this error is when there are more generic or template
1616

1717
## Examples
1818

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

2121
```cpp
2222
// C3856.cpp

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ More than one template or generic was specified for the same type, which is not
1616

1717
## Examples
1818

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

2121
```cpp
2222
// C3857.cpp

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ The type cannot be declared twice in the same scope.
1616

1717
## Example
1818

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

2121
```cpp
2222
// C3858.cpp

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ A generic or template argument list was ill formed.
1616

1717
## Examples
1818

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

2121
```cpp
2222
// C3860.cpp

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ If error C3861 appears after project migration from older versions of the compil
2323

2424
### Undefined identifier
2525

26-
The following sample generates C3861 because the identifier isn't defined.
26+
The following example generates C3861 because the identifier isn't defined.
2727

2828
```cpp
2929
// C3861.cpp
@@ -36,7 +36,7 @@ int main() {
3636

3737
### Identifier not in scope
3838

39-
The following sample generates C3861, because an identifier is only visible in the file scope of its definition, unless it's declared in other source files that use it.
39+
The following example generates C3861, because an identifier is only visible in the file scope of its definition, unless it's declared in other source files that use it.
4040

4141
Source file `C3861_a1.cpp`:
4242

@@ -97,7 +97,7 @@ int main() {
9797

9898
### ADL and friend functions
9999

100-
The following sample generates C3861 because the compiler can't use argument dependent lookup for `FriendFunc`:
100+
The following example generates C3861 because the compiler can't use argument dependent lookup for `FriendFunc`:
101101

102102
```cpp
103103
namespace N {

0 commit comments

Comments
 (0)