Skip to content

Commit 14631c5

Browse files
authored
Replace term "sample" with "example" for error references in range [LNK2001, LNK2039]
1 parent 6fbee14 commit 14631c5

File tree

5 files changed

+12
-12
lines changed

5 files changed

+12
-12
lines changed

docs/error-messages/tool-errors/linker-tools-error-lnk2019.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ Unless `i` and `g` are defined in one of the files included in the build, the li
145145

146146
### A static data member is declared but not defined
147147

148-
LNK2019 can also occur when a static data member is declared but not defined. The following sample generates LNK2019, and shows how to fix it.
148+
LNK2019 can also occur when a static data member is declared but not defined. The following example generates LNK2019, and shows how to fix it.
149149

150150
```cpp
151151
// LNK2019b.cpp
@@ -166,7 +166,7 @@ int main() {
166166
167167
### Declaration parameters don't match the definition
168168
169-
Code that invokes function templates must have matching function template declarations. Declarations must include the same template parameters as the definition. The following sample generates LNK2019 on a user-defined operator, and shows how to fix it.
169+
Code that invokes function templates must have matching function template declarations. Declarations must include the same template parameters as the definition. The following example generates LNK2019 on a user-defined operator, and shows how to fix it.
170170
171171
```cpp
172172
// LNK2019e.cpp
@@ -196,7 +196,7 @@ int main() {
196196

197197
### Inconsistent wchar_t type definitions
198198

199-
This sample creates a DLL that has an export that uses `WCHAR`, which resolves to **`wchar_t`**.
199+
This example creates a DLL that has an export that uses `WCHAR`, which resolves to **`wchar_t`**.
200200

201201
```cpp
202202
// LNK2019g.cpp
@@ -206,7 +206,7 @@ This sample creates a DLL that has an export that uses `WCHAR`, which resolves t
206206
__declspec(dllexport) void func(WCHAR*) {}
207207
```
208208
209-
The next sample uses the DLL in the previous sample, and generates LNK2019 because the types `unsigned short*` and `WCHAR*` aren't the same.
209+
The next example uses the DLL in the previous example, and generates LNK2019 because the types `unsigned short*` and `WCHAR*` aren't the same.
210210
211211
```cpp
212212
// LNK2019h.cpp

docs/error-messages/tool-errors/linker-tools-error-lnk2020.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ To resolve:
2121

2222
## Examples
2323

24-
The following sample generates LNK2020.
24+
The following example generates LNK2020.
2525

2626
```cpp
2727
// LNK2020.cpp
@@ -40,7 +40,7 @@ ref struct B {
4040
4141
LNK2020 will also occur if you create a variable of a managed template type, but do not also instantiate the type.
4242
43-
The following sample generates LNK2020.
43+
The following example generates LNK2020.
4444
4545
```cpp
4646
// LNK2020_b.cpp

docs/error-messages/tool-errors/linker-tools-error-lnk2028.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ The **/clr:pure** compiler option is deprecated in Visual Studio 2015 and unsupp
1818

1919
## Examples
2020

21-
This code sample generates a component with an exported, native, function whose calling convention is implicitly [__cdecl](../../cpp/cdecl.md).
21+
This code example generates a component with an exported, native, function whose calling convention is implicitly [__cdecl](../../cpp/cdecl.md).
2222

2323
```cpp
2424
// LNK2028.cpp
@@ -28,7 +28,7 @@ __declspec(dllexport) int func() {
2828
}
2929
```
3030
31-
The following sample creates a pure client that consumes the native function. However, the calling convention under **/clr:pure** is [__clrcall](../../cpp/clrcall.md). The following sample generates LNK2028.
31+
The following example creates a pure client that consumes the native function. However, the calling convention under **/clr:pure** is [__clrcall](../../cpp/clrcall.md). The following example generates LNK2028.
3232
3333
```cpp
3434
// LNK2028_b.cpp

docs/error-messages/tool-errors/linker-tools-error-lnk2031.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ The **/clr:pure** compiler option is deprecated in Visual Studio 2015 and unsupp
1818

1919
## Examples
2020

21-
This code sample generates a component with an exported, native, function whose calling convention is implicitly [__cdecl](../../cpp/cdecl.md).
21+
This code example generates a component with an exported, native, function whose calling convention is implicitly [__cdecl](../../cpp/cdecl.md).
2222

2323
```cpp
2424
// LNK2031.cpp
@@ -28,7 +28,7 @@ extern "C" {
2828
};
2929
```
3030
31-
The following sample creates a pure client that consumes the native function. However, the calling convention under **/clr:pure** is [__clrcall](../../cpp/clrcall.md). The following sample generates LNK2031.
31+
The following example creates a pure client that consumes the native function. However, the calling convention under **/clr:pure** is [__clrcall](../../cpp/clrcall.md). The following example generates LNK2031.
3232
3333
```cpp
3434
// LNK2031_b.cpp
@@ -41,7 +41,7 @@ int main() {
4141
}
4242
```
4343

44-
The following sample shows how to consume the native function from a pure image. Note the explicit **`__cdecl`** calling convention specifier.
44+
The following example shows how to consume the native function from a pure image. Note the explicit **`__cdecl`** calling convention specifier.
4545

4646
```cpp
4747
// LNK2031_c.cpp

docs/error-messages/tool-errors/linker-tools-error-lnk2033.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ For more information, see [/clr (Common Language Runtime Compilation)](../../bui
2121

2222
## Example
2323

24-
The following sample generates LNK2033.
24+
The following example generates LNK2033.
2525

2626
```cpp
2727
// LNK2033.cpp

0 commit comments

Comments
 (0)