Skip to content

Commit f73b9e2

Browse files
author
Colin Robertson
committed
Tweak for Acrolinx
1 parent b37dd39 commit f73b9e2

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

docs/cpp/address-of-operator-amp.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ When applied to functions or l-values, the result of the expression is a pointer
2222

2323
The address of an overloaded function can be taken only when it's clear which version of the function is being referenced. See [Function Overloading](function-overloading.md) for information about how to obtain the address of a particular overloaded function.
2424

25-
When the address-of operator is applied to a qualified name, the result depends on whether the *qualified-name* specifies a static member. If so, the result is a pointer to the type specified in the declaration of the member. If the member isn't static, the result is a pointer to the member *name* of the class indicated by *qualified-class-name*. For more information about *qualified-class-name*, see [Primary expressions](../cpp/primary-expressions.md).
25+
When the address-of operator is applied to a qualified name, the result depends on whether the *qualified-name* specifies a static member. If so, the result is a pointer to the type specified in the declaration of the member. For a member that isn't static, the result is a pointer to the member *name* of the class indicated by *qualified-class-name*. For more information about *qualified-class-name*, see [Primary expressions](../cpp/primary-expressions.md).
2626

2727
## Example: Address of static member
2828

docs/cpp/if-else-statement-cpp.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ An if-else statement controls conditional branching. Statements in the *`if-bran
1515
- **`true`**
1616
- a non-null pointer,
1717
- any non-zero arithmetic value, or
18-
- a class type that defines an unambiguous conversion to an arithmetic, boolean or pointer type. (For information about conversions, see [Standard Conversions](../cpp/standard-conversions.md).)
18+
- a class type that defines an unambiguous conversion to an arithmetic, boolean, or pointer type. (For information about conversions, see [Standard Conversions](../cpp/standard-conversions.md).)
1919

2020
## Syntax
2121

@@ -57,7 +57,7 @@ An if-else statement controls conditional branching. Statements in the *`if-bran
5757

5858
In all forms of the **`if`** statement, *`condition`*, which can have any value except a structure, is evaluated, including all side effects. Control passes from the **`if`** statement to the next statement in the program unless the executed *`if-branch`* or *`else-branch`* contains a [`break`](../cpp/break-statement-cpp.md), [`continue`](../cpp/continue-statement-cpp.md), or [`goto`](../cpp/goto-statement-cpp.md).
5959

60-
The **`else`** clause of an `if...else` statement is associated with the closest previous **`if`** statement in the same scope that does not have a corresponding **`else`** statement.
60+
The **`else`** clause of an `if...else` statement is associated with the closest previous **`if`** statement in the same scope that doesn't have a corresponding **`else`** statement.
6161

6262
### Example
6363

@@ -162,7 +162,7 @@ Starting in C++17, you can use an **`if constexpr`** statement in function templ
162162

163163
### Example
164164

165-
This example shows how you can write a single function that handles parameter unpacking (no zero-parameter overload is needed):
165+
This example shows how you can write a single function that handles parameter unpacking. No zero-parameter overload is needed:
166166

167167
```cpp
168168
template <class T, class... Rest>

docs/cpp/primary-expressions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public:
3535

3636
For more information about modifying the type of the **`this`** pointer, see [`this` pointer](this-pointer.md).
3737

38-
The scope-resolution operator (**`::`**) followed by a name is a primary expression. Such names must be names at global scope, not member names. The type of the expression is determined by the declaration of the name. It's an l-value (that is, it can appear on the left-hand side of an assignment expression) if the declaring name is an l-value. The scope-resolution operator allows a global name to be referred to, even if that name is hidden in the current scope. See [Scope](../cpp/scope-visual-cpp.md) for an example of how to use the scope-resolution operator.
38+
The scope-resolution operator (**`::`**) followed by a name is a primary expression. Such names must be names at global scope, not member names. The type of the expression is determined by the declaration of the name. It's an l-value (that is, it can appear on the left-hand side of an assignment expression) if the declaring name is an l-value. The scope-resolution operator allows a global name to be referred to, even if that name is hidden in the current scope. See [Scope](../cpp/scope-visual-cpp.md) for an example of how to use the scope-resolution operator.
3939

4040
An expression enclosed in parentheses is a primary expression. Its type and value are identical to the type and value of the unparenthesized expression. It's an l-value if the unparenthesized expression is an l-value.
4141

0 commit comments

Comments
 (0)