Skip to content

Commit b8f0ae7

Browse files
authored
Replace term "sample" with "example" for error references in range [C3011, C3030]
1 parent 87e152c commit b8f0ae7

20 files changed

+22
-22
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ An `omp` parallel region cannot contain inline assembly instructions.
1616

1717
## Example
1818

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

2121
```cpp
2222
// C3011.cpp

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ A [compiler intrinsic](../../intrinsics/compiler-intrinsics.md) function is not
1616

1717
## Example
1818

19-
The following sample generates C3012, and shows one way to fix it:
19+
The following example generates C3012, and shows one way to fix it:
2020

2121
```cpp
2222
// C3012.cpp

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ A clause appeared twice on the same directive. Delete one occurrence of the clau
1616

1717
## Example
1818

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

2121
```cpp
2222
// C3013.cpp

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ It is an error for anything other than a **`for`** loop to immediately follow a
1616

1717
## Example
1818

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

2121
```cpp
2222
// C3014.cpp

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ A **`for`** loop in an OpenMP statement must be fully and explicitly specified.
1616

1717
## Example
1818

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

2121
```cpp
2222
// C3015.cpp

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ The index variable in an OpenMP **`for`** statement must be a signed integral ty
1616

1717
## Example
1818

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

2121
```cpp
2222
// C3016.cpp

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ A **`for`** loop in an OpenMP statement must be fully and explicitly specified.
1616

1717
## Example
1818

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

2121
```cpp
2222
// C3017.cpp

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ A **`for`** loop in an OpenMP statement must use the same variable for its test
1616

1717
## Example
1818

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

2121
```cpp
2222
// C3018.cpp

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ The increment part of an OpenMP **`for`** loop must use the index variable both
1616

1717
## Example
1818

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

2121
```cpp
2222
// C3019.cpp

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ An OpenMP **`for`** loop may not modify the index (loop counter) in the body of
1616

1717
## Examples
1818

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

2121
```cpp
2222
// C3020.cpp
@@ -37,7 +37,7 @@ int main() {
3737

3838
A variable declared with [lastprivate](../../parallel/openmp/reference/openmp-clauses.md#lastprivate) cannot be used as the index inside a parallelized loop.
3939

40-
The following sample will give C3020 for the second lastprivate because that lastprivate will trigger a write to idx_a within the outermost for loop. The first lastprivate doesn't give an error because that lastprivate triggers a write to idx_a outside the outermost for loop (technically, at the very end of the last iteration). The following sample generates C3020.
40+
The following example will give C3020 for the second lastprivate because that lastprivate will trigger a write to idx_a within the outermost for loop. The first lastprivate doesn't give an error because that lastprivate triggers a write to idx_a outside the outermost for loop (technically, at the very end of the last iteration). The following example generates C3020.
4141

4242
```cpp
4343
// C3020b.cpp
@@ -56,7 +56,7 @@ void test(int first, int last)
5656
}
5757
```
5858
59-
The following sample demonstrates a possible resolution:
59+
The following example demonstrates a possible resolution:
6060
6161
```cpp
6262
// C3020c.cpp

0 commit comments

Comments
 (0)