Skip to content

Commit 58b19e1

Browse files
TylerMSFTTylerMSFT
authored andcommitted
acrolinx
1 parent 7d15629 commit 58b19e1

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

docs/cpp/cpp-bit-fields.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ struct Date {
3232
};
3333
```
3434
35-
The conceptual memory layout of an object of type `Date` is shown in the following figure.
35+
The conceptual memory layout of an object of type `Date` is shown in the following figure:
3636
3737
:::image type="complex" source="../cpp/media/vc38uq1.png" alt-text="Memory layout of a date object, showing where the nWeekDay, nMonthDay, nMonth, and nYear bit fields fall.":::
3838
32 bits of memory are displayed in a row. Starting with the least significant bit, 3 bits are for nWeekDay. The next 6 bits are for nMonthDay. The next 5 bits are for nMonth. The next 2 bits are unused. The next 8 bits are for nYear. The remaining 8 bits are unused.
@@ -46,7 +46,7 @@ The ordering of data declared as bit fields is from low to high bit, as shown in
4646
4747
**END Microsoft Specific**
4848
49-
If the declaration of a structure includes an unnamed field of length 0, as shown in the following example,
49+
If the declaration of a structure includes an unnamed field of length 0, as shown in the following example:
5050
5151
```cpp
5252
// bit_fields2.cpp
@@ -60,7 +60,7 @@ struct Date {
6060
};
6161
```
6262

63-
then the memory layout is as shown in the following figure:
63+
Then the memory layout is as shown in the following figure:
6464

6565
:::image type="complex" source="../cpp/media/vc38uq2.png" alt-text="Layout of a Date object with a zero length bit field, which forces alignment padding.":::
6666
64 bits of memory are displayed in a row. Starting with the least significant bit, 5 bits are for nMonth. The next 8 bits are for nYear. The next 19 bits are unused. The next 3 bits are for nWeekDay. The next 6 bits are for nMonthDay. The remaining bits are unused.

docs/cpp/dynamic-cast-operator.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ See [static_cast](../cpp/static-cast-operator.md) for an explanation of the diff
2323

2424
There are two breaking changes in the behavior of **`dynamic_cast`** in managed code:
2525

26-
- **`dynamic_cast`** to a pointer to the underlying type of a boxed enum fails at runtime, returning 0 instead of the converted pointer.
26+
- **`dynamic_cast`** to a pointer to the underlying type of a boxed enum will fail at runtime, returning 0 instead of the converted pointer.
2727

28-
- **`dynamic_cast`** won't throw an exception when `type-id` is an interior pointer to a value type; instead, the cast fails at runtime. The cast returns the 0 pointer value instead of throwing.
28+
- **`dynamic_cast`** will no longer throw an exception when `type-id` is an interior pointer to a value type; instead, the cast fails at runtime. The cast returns the 0 pointer value instead of throwing.
2929

30-
If `type-id` is a pointer to an unambiguous accessible direct or indirect base class of `expression`; a pointer to the unique subobject of type `type-id` is the result. For example:
30+
If `type-id` is a pointer to an unambiguous accessible direct or indirect base class of `expression`, then a pointer to the unique subobject of type `type-id` is the result. For example:
3131

3232
```cpp
3333
// dynamic_cast_1.cpp

docs/cpp/member-access-control-cpp.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ In the preceding example, calling the virtual function `GetState` using a pointe
228228

229229
## Access control with multiple inheritance
230230

231-
In multiple-inheritance lattices involving virtual base classes, a given name can be reached through more than one path. Because different access control can be applied along these different paths, the compiler chooses the path that gives the most access. See the following figure.
231+
In multiple-inheritance lattices involving virtual base classes, a given name can be reached through more than one path. Because different access control can be applied along these different paths, the compiler chooses the path that gives the most access. See the following figure:
232232

233233
:::image type="complex" source="../cpp/media/vc38v91.gif" alt-text="Diagram showing access along the paths of an inheritance graph.":::
234234
The diagram shows the following inheritance hierarchy: class VBase is the base class. Class LeftPath inherits from VBase using virtual private VBase. class RightPath also inherits from VBase but using virtual public VBase. Finally, class Derived inherits from both class LeftPath and class RightPath using public LeftPath, public RightPath.

docs/cpp/unions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -533,7 +533,7 @@ int main()
533533
*/
534534
```
535535

536-
The `NumericType` union is arranged in memory (conceptually) as shown in the following figure.
536+
The `NumericType` union is arranged in memory (conceptually) as shown in the following figure:
537537

538538
:::image type="complex" source="../cpp/media/vc38ul1.png" alt-text="Diagram that shows the overlapping storage of data in the NumericType union.":::
539539
The diagram shows 8 bytes of data. The double type dValue occupies the entire 8 bytes. The type long lValue occupies the first 4 bytes. The short type iValue occupies the first byte.

docs/mfc/reference/cdc-class.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2836,10 +2836,10 @@ A pointer to a `CBrush` object if successful; otherwise `NULL`.
28362836
28372837
### Remarks
28382838
2839-
A halftone brush shows pixels that are alternately foreground and background colors to create a dithered pattern. The following is an example of a dithered pattern created by a halftone brush.
2839+
A halftone brush shows pixels that are alternately foreground and background colors to create a dithered pattern. The following diagram shows an example of a dithered pattern created by a halftone brush:
28402840
28412841
:::image type="complex" source="../../mfc/reference/media/vc318s1.gif" alt-text="Detail of a dithered pen stroke.":::
2842-
The diagram shows how the background color of black and the foreground color of yellow are combined into a pattern where the black and yellow pixels alternate with each other to create a dithered pen stroke.
2842+
The diagram shows how the background color of black, and the foreground color of yellow, are combined into a pattern by alternating the black and yellow pixels with each other to create a dithered pen stroke.
28432843
:::image-end:::
28442844
28452845
## <a name="getkerningpairs"></a> `CDC::GetKerningPairs`

0 commit comments

Comments
 (0)