Skip to content

Commit 30a7379

Browse files
authored
Replace term "sample" with "example" for error references in range [C2061, C2080]
1 parent 4db7a0b commit 30a7379

11 files changed

+14
-14
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ This error could also be caused when the compiler detects an expression as a cla
2020

2121
## Examples
2222

23-
The following sample generates C2061:
23+
The following example generates C2061:
2424

2525
```cpp
2626
// C2061.cpp

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ The compiler did not expect a type name.
1616

1717
## Example
1818

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

2121
```cpp
2222
// C2062.cpp

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ The identifier is used as a function but not declared as a function.
1616

1717
## Example
1818

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

2121
```c
2222
// C2063.c

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ A call is made to a function through an expression. The expression does not eval
1616

1717
## Examples
1818

19-
In this example, the code attempts to call non-functions as functions. The following sample generates C2064:
19+
In this example, the code attempts to call non-functions as functions. The following example generates C2064:
2020

2121
```cpp
2222
// C2064.cpp
@@ -28,7 +28,7 @@ void func() {
2828
}
2929
```
3030

31-
You must call pointers to non-static member functions from the context of an object instance. The following sample generates C2064, and shows how to fix it:
31+
You must call pointers to non-static member functions from the context of an object instance. The following example generates C2064, and shows how to fix it:
3232

3333
```cpp
3434
// C2064b.cpp
@@ -47,7 +47,7 @@ int main() {
4747
}
4848
```
4949
50-
Within a class, member function pointers must also indicate the calling object context. The following sample generates C2064 and shows how to fix it:
50+
Within a class, member function pointers must also indicate the calling object context. The following example generates C2064 and shows how to fix it:
5151
5252
```cpp
5353
// C2064d.cpp

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ The [sizeof](../../cpp/sizeof-operator.md) operator requires an expression or ty
1616

1717
## Example
1818

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

2121
```cpp
2222
// C2070.cpp

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ To fix this issue, understand the intended storage class of the identifier—for
1818

1919
## Examples
2020

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

2323
```cpp
2424
// C2071.cpp
@@ -31,7 +31,7 @@ struct D {
3131
};
3232
```
3333
34-
The following sample generates C2071.
34+
The following example generates C2071.
3535
3636
```cpp
3737
// C2071_b.cpp

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

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

1919
## Example
2020

21-
The following sample generates C2073. Source file `C2073.cpp`:
21+
The following example generates C2073. Source file `C2073.cpp`:
2222

2323
```cpp
2424
// C2073.cpp

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ There were no curly braces around the specified array initializer.
1616

1717
## Example
1818

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

2121
```c
2222
// C2075.c

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ The compiler can deduce the correct assignment of initializers to objects and in
1818

1919
## Example
2020

21-
The following sample generates C2078 and shows how to fix it:
21+
The following example generates C2078 and shows how to fix it:
2222

2323
```cpp
2424
// C2078.cpp

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ This error can be caused by initializing an anonymous union.
1818

1919
## Examples
2020

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

2323
```cpp
2424
// C2079.cpp

0 commit comments

Comments
 (0)