Skip to content

Commit eb8ce5f

Browse files
committed
1769497, incorporating author feedback.
1 parent f6920c3 commit eb8ce5f

8 files changed

Lines changed: 16 additions & 16 deletions

docs/c-runtime-library/reference/strncpy-s-strncpy-s-l-wcsncpy-s-wcsncpy-s-l-mbsncpy-s-mbsncpy-s-l.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ By default, this function's global state is scoped to the application. To change
187187

188188
For additional compatibility information, see [Compatibility](../../c-runtime-library/compatibility.md).
189189

190-
## Example: Copy chars to buffer
190+
## Example: Copy chars to a buffer
191191

192192
```cpp
193193
// crt_strncpy_s_1.cpp

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class CMFC01Dlg : public CDialog
3131
};
3232
```
3333

34-
## Example: Extending CMFC01Dlg
34+
## Example: Implement DoDataExchange()
3535

3636
Put the following code in the implementation of CMFC01Dlg:
3737

@@ -64,7 +64,7 @@ void CMFC01Dlg::OnBnClickedOk()
6464
}
6565
```
6666

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

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

docs/error-messages/tool-errors/missing-function-body-or-variable.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ int main() {
2121
}
2222
```
2323
24-
## Example: Include the implementation of a specific function for a class
24+
## Example: Include class function implementation
2525
2626
In C++, make sure that you include the implementation of a specific function for a class and not just a prototype in the class definition. If you are defining the class outside of the header file, be sure to include the class name before the function (`Classname::memberfunction`).
2727

docs/extensions/attribute-parameter-types-cpp-component-extensions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ ref class ClassC {}; // Positional argument
9292
ref class ClassD {}; // Positional and named
9393
```
9494

95-
## Example: One-dimensional arrays
95+
## Example: One-dimensional array attribute parameter
9696

9797
### Description
9898

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Function calls among languages that use null pointer values for error checking s
4343

4444
You cannot initialize a handle to zero; only **`nullptr`** can be used. Assignment of constant 0 to an object handle produces a boxed `Int32` and a cast to `Object^`.
4545

46-
## Example: Use `nullptr` keyword
46+
## Example: `nullptr` keyword
4747

4848
The following code example demonstrates that the **`nullptr`** keyword can be used wherever a handle, native pointer, or function argument can be used. And the example demonstrates that the **`nullptr`** keyword can be used to check a reference before it is used.
4949

@@ -111,7 +111,7 @@ pMyClass == nullptr
111111
pMyClass == 0
112112
```
113113

114-
## Example: `nullptr` interpreted as handle
114+
## Example: Interpret `nullptr` as a handle
115115

116116
The following code example shows that **`nullptr`** is interpreted as a handle to any type or a native pointer to any type. In case of function overloading with handles to different types, an ambiguity error will be generated. The **`nullptr`** would have to be explicitly cast to a type.
117117

@@ -198,7 +198,7 @@ int main() {
198198
NULL
199199
```
200200

201-
## Example: `nullptr` assigned to native pointer
201+
## Example: Assign `nullptr` to a 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-exception-handling-to-break-from-a-parallel-loop.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ The following example shows a basic `tree` type that contains a data element and
1616

1717
[!code-cpp[concrt-task-tree-search#2](../../parallel/concrt/codesnippet/cpp/how-to-use-exception-handling-to-break-from-a-parallel-loop_1.cpp)]
1818

19-
## Example: for_all method
19+
## Example: Perform work in parallel
2020

2121
The following example shows the `for_all` method. It uses the [concurrency::parallel_for_each](reference/concurrency-namespace-functions.md#parallel_for_each) algorithm to perform a work function on each node of the tree in parallel.
2222

2323
[!code-cpp[concrt-task-tree-search#1](../../parallel/concrt/codesnippet/cpp/how-to-use-exception-handling-to-break-from-a-parallel-loop_2.cpp)]
2424

25-
## Example: search_for_value function
25+
## Example: Search the tree for a value
2626

2727
The following example shows the `search_for_value` function, which searches for a value in the provided `tree` object. This function passes to the `for_all` method a work function that throws when it finds a tree node that contains the provided value.
2828

@@ -32,7 +32,7 @@ When the work function that you provide to a task group throws an exception, the
3232

3333
[!code-cpp[concrt-task-tree-search#3](../../parallel/concrt/codesnippet/cpp/how-to-use-exception-handling-to-break-from-a-parallel-loop_3.cpp)]
3434

35-
## Example: Create and search a tree object
35+
## Example: Create and search a tree in parallel
3636

3737
The following example creates a `tree` object and searches it for several values in parallel. The `build_tree` function is shown later in this topic.
3838

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ ms.assetid: adb4d64e-5514-4b70-8dcb-b9210e6b5a1c
88

99
This example demonstrates how to use [concurrency::parallel_for](reference/concurrency-namespace-functions.md#parallel_for) to compute the product of two matrices.
1010

11-
## Example: matrix_multiply function
11+
## Example: Compute the product of two matrices
1212

1313
The following example shows the `matrix_multiply` function, which computes the product of two square matrices.
1414

1515
[!code-cpp[concrt-parallel-matrix-multiply#1](../../parallel/concrt/codesnippet/cpp/how-to-write-a-parallel-for-loop_1.cpp)]
1616

17-
## Example: parallel_matrix_multiply function
17+
## Example: Compute a matrix multiply in parallel
1818

1919
The following example shows the `parallel_matrix_multiply` function, which uses the `parallel_for` algorithm to perform the outer loop in parallel.
2020

docs/standard-library/tuple-element-class-tuple.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ The template specializations for `pair` types each provide a single member typed
7878
7979
Use the [get Function <utility>](../standard-library/utility-functions.md#get) to return the element at a specified position, or of a specified type.
8080
81-
## Example: Use tuple
81+
## Example: Get an element from a tuple
8282
8383
```cpp
8484
#include <tuple>
@@ -103,7 +103,7 @@ int main() {
103103
0 1.5 Tail
104104
```
105105

106-
## Example: Use array
106+
## Example: Get an element from an array
107107

108108
```cpp
109109
#include <array>
@@ -133,7 +133,7 @@ int main()
133133
0
134134
```
135135

136-
## Example: Use pair
136+
## Example: Get an element from a pair
137137

138138
```cpp
139139
#include <utility>

0 commit comments

Comments
 (0)