Skip to content

Commit 54f9dcb

Browse files
committed
1769497, started incorporating more author feedback.
1 parent 735ecb3 commit 54f9dcb

19 files changed

Lines changed: 35 additions & 35 deletions

‎docs/c-runtime-library/reference/malloca.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ In addition to the above restrictions, when using the [/clr (Common Language Run
5757
|-------------|---------------------|
5858
|**_malloca**|\<malloc.h>|
5959

60-
## Example: malloca simple
60+
## Example: malloca
6161

6262
```C
6363
// crt_malloca_simple.c

‎docs/c-runtime-library/reference/sprintf-p-sprintf-p-l-swprintf-p-swprintf-p-l.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ Output:
134134
character count = 79
135135
```
136136

137-
## Example: _swprintf_p returns error code
137+
## Example: Error code handling
138138

139139
```C
140140
// crt_swprintf_p.c

‎docs/c-runtime-library/reference/sprintf-s-sprintf-s-l-swprintf-s-swprintf-s-l.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ Output:
147147
character count = 79
148148
```
149149

150-
## Example: swprintf_s returns error code
150+
## Example: Error code handling
151151

152152
```C
153153
// crt_swprintf_s.c

‎docs/c-runtime-library/reference/sprintf-sprintf-l-swprintf-swprintf-l-swprintf-l.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ Output:
152152
character count = 79
153153
```
154154

155-
## Example: swprintf returns error code
155+
## Example: Error code handling
156156

157157
```C
158158
// crt_swprintf.c

‎docs/cpp/new-operator-cpp.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ Specifies type to be allocated; it can be either a built-in or user-defined type
6363
*initializer*<br/>
6464
Provides a value for the initialized object. Initializers cannot be specified for arrays. The **`new`** operator will create arrays of objects only if the class has a default constructor.
6565

66-
## Example: Allocates character array and object
66+
## Example: Allocate character array and object
6767

6868
The following code example allocates a character array and an object of class `CName` and then frees them.
6969

@@ -108,7 +108,7 @@ int main() {
108108
}
109109
```
110110
111-
## Example: new operator
111+
## Example: `new` operator
112112
113113
If you use the placement new form of the **`new`** operator, the form with arguments in addition to the size of the allocation, the compiler does not support a placement form of the **`delete`** operator if the constructor throws an exception. For example:
114114

‎docs/cpp/selectany.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ A global data item can normally be initialized only once in an EXE or DLL projec
2828
> [!NOTE]
2929
> **`selectany`** can only be applied to the actual initialization of global data items that are externally visible.
3030
31-
## Example: selectany attribute
31+
## Example: `selectany` attribute
3232

3333
This code shows how to use the **`selectany`** attribute:
3434

@@ -62,7 +62,7 @@ int i;
6262
__declspec(selectany) X x(1);
6363
```
6464
65-
## Example: Use selectany attribute to ensure data COMDAT folding
65+
## Example: Use `selectany` attribute to ensure data COMDAT folding
6666
6767
This code shows how to use the **`selectany`** attribute to ensure data COMDAT folding when you also use the [`/OPT:ICF`](../build/reference/opt-optimizations.md) linker option. Note that data must be marked with **`selectany`** and placed in a **`const`** (readonly) section. You must explicitly specify the read-only section.
6868

‎docs/cpp/static-assert.md‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ You can use the **`static_assert`** keyword at namespace, class, or block 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

42-
## Example: static_assert with namespace scope
42+
## Example: `static_assert` with namespace scope
4343

4444
```cpp
4545
static_assert(sizeof(void *) == 4, "64-bit code generation is not supported.");
@@ -49,7 +49,7 @@ static_assert(sizeof(void *) == 4, "64-bit code generation is not supported.");
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

52-
## Example: static_assert with class scope
52+
## Example: `static_assert` with class scope
5353

5454
```cpp
5555
#include <type_traits>
@@ -74,11 +74,11 @@ int main()
7474
}
7575
```
7676

77-
## Description of static_assert with block scope
77+
## Description of `static_assert` with block scope
7878

7979
In the following example, the **`static_assert`** declaration has block scope. The **`static_assert`** verifies that the size of the VMPage structure is equal to the virtual memory pagesize of the system.
8080

81-
## Example: static_assert with block scope
81+
## Example: `static_assert` with block scope
8282

8383
```cpp
8484
#include <sys/param.h> // defines PAGESIZE

‎docs/cpp/template-specialization-cpp.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ Null pointer!
171171
3 87 8 100
172172
```
173173

174-
## Example: Define partial specialization so one type is in
174+
## Example: Define partial specialization so one type is `int`
175175

176176
The following example defines a template class that takes pairs of any two types and then defines a partial specialization of that template class specialized so that one of the types is **`int`**. The specialization defines an additional sort method that implements a simple bubble sort based on the integer.
177177

‎docs/cpp/using-declaration.md‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ using declarator-list ;
3030

3131
A using declaration introduces an unqualified name as a synonym for an entity declared elsewhere. It allows a single name from a specific namespace to be used without explicit qualification in the declaration region in which it appears. This is in contrast to the [using directive](../cpp/namespaces-cpp.md#using_directives), which allows *all* the names in a namespace to be used without qualification. The **`using`** keyword is also used for [type aliases](../cpp/aliases-and-typedefs-cpp.md).
3232

33-
## Example: using declaration in class field
33+
## Example: `using` declaration in class field
3434

3535
A using declaration can be used in a class definition.
3636

@@ -76,7 +76,7 @@ In B::f()
7676
In B::g()
7777
```
7878

79-
## Example: using declaration to declare a member
79+
## Example: `using` declaration to declare a member
8080

8181
When used to declare a member, a using declaration must refer to a member of a base class.
8282

@@ -185,7 +185,7 @@ void b() {
185185
}
186186
```
187187
188-
## Example: Local declarations and using declarations
188+
## Example: Local declarations and `using` declarations
189189
190190
With respect to functions in namespaces, if a set of local declarations and using declarations for a single name are given in a declarative region, they must all refer to the same entity, or they must all refer to functions.
191191
@@ -208,7 +208,7 @@ void g() {
208208

209209
In the example above, the `using B::i` statement causes a second `int i` to be declared in the `g()` function. The `using B::f` statement does not conflict with the `f(char)` function because the function names introduced by `B::f` have different parameter types.
210210

211-
## Example: Local function declarations and using declarations
211+
## Example: Local function declarations and `using` declarations
212212

213213
A local function declaration cannot have the same name and type as a function introduced by using declaration. For example:
214214

@@ -235,7 +235,7 @@ void h() {
235235
}
236236
```
237237
238-
## Example: using declaration and inheritance
238+
## Example: `using` declaration and inheritance
239239
240240
With respect to inheritance, when a using declaration introduces a name from a base class into a derived class scope, member functions in the derived class override virtual member functions with the same name and argument types in the base class.
241241
@@ -293,7 +293,7 @@ In B::g
293293
In D::g(char)
294294
```
295295

296-
## Example: using declaration accessibility
296+
## Example: `using` declaration accessibility
297297

298298
All instances of a name mentioned in a using declaration must be accessible. In particular, if a derived class uses a using declaration to access a member of a base class, the member name must be accessible. If the name is that of an overloaded member function, then all functions named must be accessible.
299299

‎docs/data/oledb/using-dynamic-accessors.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ The [DynamicConsumer](https://github.com/Microsoft/VCSamples/tree/master/VC2008S
1414

1515
[CDynamicAccessor](../../data/oledb/cdynamicaccessor-class.md) allows you to access a data source when you have no knowledge of the database schema (the database's underlying structure). `CDynamicAccessor` methods get column information such as column names, count, and data type. You use this column information to create an accessor dynamically at run time. The column information is stored in a buffer that is created and managed by this class. Get data from the buffer using the [GetValue](./cdynamicaccessor-class.md#getvalue) method.
1616

17-
## Example: Dynamic accessors
17+
## Example: CDynamic accessors
1818

1919
```cpp
2020
// Using_Dynamic_Accessors.cpp

0 commit comments

Comments
 (0)