Skip to content

Commit a79f522

Browse files
authored
Replace term "sample" with "example" for error references in range [C3381, C3420]
1 parent f828f78 commit a79f522

26 files changed

+30
-30
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ In C++/CLI, native types can be visible outside an assembly, but you can only sp
2020

2121
## Example
2222

23-
The following sample generates C3381. To fix it, first either remove the **`public`** specifier from the `class A` definition, or compile by using the **`/clr`** option. Next, add a colon after **`private`** to specify access for `class B {} b;`. That's because a nested class can't have an assembly access specifier as part of its declaration.
23+
The following example generates C3381. To fix it, first either remove the **`public`** specifier from the `class A` definition, or compile by using the **`/clr`** option. Next, add a colon after **`private`** to specify access for `class B {} b;`. That's because a nested class can't have an assembly access specifier as part of its declaration.
2424

2525
```cpp
2626
// C3381.cpp

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ For more information, see,
2424

2525
## Example
2626

27-
The following sample generates C3382.
27+
The following example generates C3382.
2828

2929
```cpp
3030
// C3382.cpp

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ For more information, see,
2222

2323
## Example
2424

25-
The following sample generates C3383.
25+
The following example generates C3383.
2626

2727
```cpp
2828
// C3383.cpp

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ See [Constraints on Generic Type Parameters (C++/CLI)](../../extensions/constrai
1818

1919
## Example
2020

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

2323
```cpp
2424
// C3384.cpp

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ A function defined as being in a .dll file specified with the `DllImport` attrib
1616

1717
## Example
1818

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

2121
```cpp
2222
// C3385.cpp

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ The [`dllimport`](../../cpp/dllexport-dllimport.md) and [`dllexport`](../../cpp/
1616

1717
## Example
1818

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

2121
```cpp
2222
// C3386.cpp

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ The `dllimport` and [dllexport](../../cpp/dllexport-dllimport.md) **`__declspec`
1616

1717
## Example
1818

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

2121
```cpp
2222
// C3387a.cpp

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ A constraint was specified on a generic type, but the constraint was not specifi
1616

1717
## Example
1818

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

2121
```cpp
2222
// C3388.cpp

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ A [`__declspec`](../../cpp/declspec.md) modifier used implies a per-process stat
1818

1919
## Example
2020

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

2323
```cpp
2424
// C3389.cpp

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

Lines changed: 2 additions & 2 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
## Example
2020

21-
The first sample uses C# to create a component that contains a generic type. This type has certain constraints that aren't supported when authoring generic types in C++/CLI. For more information, see [Constraints on Type Parameters](/dotnet/csharp/programming-guide/generics/constraints-on-type-parameters).
21+
The first example uses C# to create a component that contains a generic type. This type has certain constraints that aren't supported when authoring generic types in C++/CLI. For more information, see [Constraints on Type Parameters](/dotnet/csharp/programming-guide/generics/constraints-on-type-parameters).
2222

2323
```csharp
2424
// C3390.cs
@@ -30,7 +30,7 @@ where V : struct
3030
where N : new() {}
3131
```
3232

33-
When the C3390.dll component is available, the following sample generates C3390.
33+
When the C3390.dll component is available, the following example generates C3390.
3434

3535
```cpp
3636
// C3390_b.cpp

0 commit comments

Comments
 (0)