Skip to content

Commit ba940dc

Browse files
committed
1769497, fixed typos.
1 parent 608a1b5 commit ba940dc

8 files changed

+10
-10
lines changed

docs/cpp/static-assert.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ The compiler examines the **`static_assert`** declaration for syntax errors when
3535

3636
You can use the **`static_assert`** keyword at namespace, class, or block scope. (The **`static_assert`** keyword is technically a declaration, even though it does not introduce new name into your program, because it can be used at namespace scope.)
3737

38-
## Description of static_assert with namespace scope
38+
## Description of `static_assert` with namespace scope
3939

4040
In the following example, the **`static_assert`** declaration has namespace scope. Because the compiler knows the size of type `void *`, the expression is evaluated immediately.
4141

@@ -45,7 +45,7 @@ In the following example, the **`static_assert`** declaration has namespace scop
4545
static_assert(sizeof(void *) == 4, "64-bit code generation is not supported.");
4646
```
4747

48-
## Description of static_assert with class scope
48+
## Description of `static_assert` with class scope
4949

5050
In the following example, the **`static_assert`** declaration has class scope. The **`static_assert`** verifies that a template parameter is a *plain old data* (POD) type. The compiler examines the **`static_assert`** declaration when it is declared, but does not evaluate the *constant-expression* parameter until the `basic_string` class template is instantiated in `main()`.
5151

docs/cpp/using-declaration.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ int main() {
116116
In B::f()
117117
```
118118

119-
## Example: using declaration with explicit qualification
119+
## Example: `using` declaration with explicit qualification
120120

121121
Members declared by using a using declaration can be referenced by using explicit qualification. The `::` prefix refers to the global namespace.
122122

@@ -156,7 +156,7 @@ In f
156156
In A::g
157157
```
158158

159-
## Example: using declaration synonyms and aliases
159+
## Example: `using` declaration synonyms and aliases
160160

161161
When a using declaration is made, the synonym created by the declaration refers only to definitions that are valid at the point of the using declaration. Definitions added to a namespace after the using declaration are not valid synonyms.
162162

docs/dotnet/how-to-do-ddx-ddv-data-binding-with-windows-forms.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ void CMFC01Dlg::OnBnClickedOk()
6464
}
6565
```
6666

67-
## Example: Add line of code to BOOL CMFC01Dlg::OnInitDialog()
67+
## Example: Add a line of code to BOOL CMFC01Dlg::OnInitDialog()
6868

6969
And add the following line to the implementation of BOOL CMFC01Dlg::OnInitDialog().
7070

docs/extensions/nullptr-cpp-component-extensions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ int main() {
198198
NULL
199199
```
200200

201-
## Example: nullptr assigned to native pointer
201+
## Example: `nullptr` assigned to native pointer
202202

203203
The following code example shows that **`nullptr`** can be assigned to a native pointer when you compile with `/clr`.
204204

docs/parallel/concrt/how-to-use-a-message-block-filter.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Because the `transformer` object receives only prime numbers, the `transformer`
3232

3333
The `transformer` object now processes only those values that are prime. In the previous example, `transformer` object processes all messages. Therefore, the previous example must receive the same number of messages that it sends. This example uses the result of the [concurrency::send](reference/concurrency-namespace-functions.md#send) function to determine how many messages to receive from the `transformer` object. The `send` function returns **`true`** when the message buffer accepts the message and **`false`** when the message buffer rejects the message. Therefore, the number of times that the message buffer accepts the message matches the count of prime numbers.
3434

35-
## Example: Complete code example
35+
## Example: Complete code sample
3636

3737
The following code shows the complete example. The example calls both the `count_primes` function and the `count_primes_filter` function.
3838

docs/parallel/concrt/how-to-use-exception-handling-to-break-from-a-parallel-loop.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ The following example creates a `tree` object and searches it for several values
4040

4141
This example uses the [concurrency::parallel_invoke](reference/concurrency-namespace-functions.md#parallel_invoke) algorithm to search for values in parallel. For more information about this algorithm, see [Parallel Algorithms](../../parallel/concrt/parallel-algorithms.md).
4242

43-
## Example: Complete code example
43+
## Example: Complete code sample
4444

4545
The following complete example uses exception handling to search for values in a basic tree structure.
4646

docs/parallel/concrt/how-to-use-parallel-containers-to-increase-efficiency.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ This example prints the prime factors for each Carmichael number if that number
4040

4141
[!code-cpp[concrt-carmichael-primes#4](../../parallel/concrt/codesnippet/cpp/how-to-use-parallel-containers-to-increase-efficiency_4.cpp)]
4242

43-
## Example: Complete code example
43+
## Example: Complete code sample
4444

4545
The following code shows the complete example, which uses parallel containers to compute the prime factors of the Carmichael numbers.
4646

docs/parallel/concrt/how-to-write-a-parallel-for-loop.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ The following example shows the `parallel_matrix_multiply` function, which uses
2222

2323
This example parallelizes the outer loop only because it performs enough work to benefit from the overhead for parallel processing. If you parallelize the inner loop, you will not receive a gain in performance because the small amount of work that the inner loop performs does not overcome the overhead for parallel processing. Therefore, parallelizing the outer loop only is the best way to maximize the benefits of concurrency on most systems.
2424

25-
## Example: Complete code example
25+
## Example: Complete code sample
2626

2727
The following more complete example compares the performance of the `matrix_multiply` function versus the `parallel_matrix_multiply` function.
2828

0 commit comments

Comments
 (0)