Skip to content

Commit 0578623

Browse files
authored
Replace term "sample" with "example" for error references in range [C3221, C3250]
1 parent 0dbfd7d commit 0578623

24 files changed

+31
-31
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ It is not permitted to declare a method parameter with a default argument. An ov
1616

1717
## Example
1818

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

2121
```cpp
2222
// C3222_2.cpp

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ You cannot apply [typeid](../../extensions/typeid-cpp-component-extensions.md) t
1616

1717
## Example
1818

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

2121
```cpp
2222
// C3223.cpp

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ The compiler failed to find an appropriate overload.
1616

1717
## Example
1818

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

2121
```
2222
// C3224.cs

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ For more information, see [Generics](../../extensions/generics-cpp-component-ext
1818

1919
## Examples
2020

21-
You cannot instantiate a generic type with a native type. The following sample generates C3225.
21+
You cannot instantiate a generic type with a native type. The following example generates C3225.
2222

2323
```cpp
2424
// C3225.cpp
@@ -36,7 +36,7 @@ int main() {
3636
}
3737
```
3838
39-
The following sample creates a component using C#. Notice that the constraint specifies that the generic type can only be instantiated with a value type.
39+
The following example creates a component using C#. Notice that the constraint specifies that the generic type can only be instantiated with a value type.
4040
4141
```
4242
// C3225_b.cs
@@ -45,7 +45,7 @@ The following sample creates a component using C#. Notice that the constraint sp
4545
public class MyList<T> where T: struct {}
4646
```
4747
48-
This sample consumes the C#-authored component, and violates the constraint that MyList can only be instantiated with a value type other than <xref:System.Nullable>. The following sample generates C3225.
48+
This example consumes the C#-authored component, and violates the constraint that MyList can only be instantiated with a value type other than <xref:System.Nullable>. The following example generates C3225.
4949
5050
```cpp
5151
// C3225_c.cpp

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Use a generic declaration inside a generic class.
1616

1717
## Example
1818

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

2121
```cpp
2222
// C3226.cpp
@@ -28,7 +28,7 @@ ref class C {
2828
};
2929
```
3030
31-
The following sample demonstrates a possible resolution:
31+
The following example demonstrates a possible resolution:
3232
3333
```cpp
3434
// C3226b.cpp

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ You can use templates instead of generics to resolve this error, or you can use
1818

1919
## Example
2020

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

2323
```cpp
2424
// C3227.cpp

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ An incorrect type was passed as a generic type argument.
1616

1717
## Example
1818

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

2121
```cpp
2222
// C3228.cpp

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ You cannot use generic parameters with `*`, `^`, or `&`.
1616

1717
## Examples
1818

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

2121
```cpp
2222
// C3229.cpp
@@ -33,7 +33,7 @@ ref class D {
3333
};
3434
```
3535
36-
The following sample generates C3229.
36+
The following example generates C3229.
3737
3838
```cpp
3939
// C3229_b.cpp

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Templates are instantiated at compile time, but generics are instantiated at run
1616

1717
## Example
1818

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

2121
```cpp
2222
// C3230.cpp

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Templates are instantiated at compile time, but generics are instantiated at run
1616

1717
## Example
1818

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

2121
```cpp
2222
// C3231.cpp

0 commit comments

Comments
 (0)