Skip to content

Commit 330d1eb

Browse files
author
Colin Robertson
authored
Update c26474.md
1 parent 6477059 commit 330d1eb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/code-quality/c26474.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,18 @@ ms.assetid: 1e23a8e6-97fa-47f5-a279-b52aa2efafa4
1010

1111
"Don't cast between pointer types when the conversion could be implicit."
1212

13-
**C++ Core Guidelines**:
13+
**C++ Core Guidelines**:\
1414
Type.1: Avoid casts
1515

1616
In some cases, implicit casts between pointer types are safe and don't require you to write a specific cast expression. This rule finds instances of unnecessary casts you can safely remove.
1717

1818
## Remarks
1919

20-
The rule ID should be interpreted as "Implicit cast isn't used where it's acceptable."
20+
The rule ID should be interpreted as "An implicit cast isn't used where it's acceptable."
2121

2222
This rule is only applicable to pointers. It checks static casts and reinterpret casts.
2323

24-
These cases are acceptable pointer conversions that should not use explicit cast expressions:
24+
These cases are acceptable pointer conversions that shouldn't use explicit cast expressions:
2525
- conversion to `nullptr_t`;
2626
- conversion to `void*`;
2727
- conversion from a derived type to its base when invoking a base member function that's not hidden by the derived type.

0 commit comments

Comments
 (0)