Skip to content

Commit b1fd505

Browse files
jensmaurertkoeppe
authored andcommitted
[expr.compound] Expression operators do not 'return' results. (#1818)
1 parent 68e5332 commit b1fd505

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

source/expressions.tex

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3721,9 +3721,9 @@
37213721
The lifetime of such an entity is not necessarily restricted to the
37223722
scope in which it is created.
37233723
\end{note}
3724-
If the entity is a non-array object, the \grammarterm{new-expression}
3725-
returns a pointer to the object created. If it is an array, the
3726-
\grammarterm{new-expression} returns a pointer to the initial element of
3724+
If the entity is a non-array object, the result of the \grammarterm{new-expression}
3725+
is a pointer to the object created. If it is an array, the result of the
3726+
\grammarterm{new-expression} is a pointer to the initial element of
37273727
the array.
37283728

37293729
\pnum
@@ -5316,7 +5316,7 @@
53165316
\pnum
53175317
The \tcode{||} operator groups left-to-right. The operands are both
53185318
contextually converted to \tcode{bool}\iref{conv}.
5319-
It returns
5319+
The result is
53205320
\tcode{true} if either of its operands is \tcode{true}, and
53215321
\tcode{false} otherwise. Unlike \tcode{|}, \tcode{||} guarantees
53225322
left-to-right evaluation; moreover, the second operand is not evaluated
@@ -5565,7 +5565,7 @@
55655565
operators all group right-to-left.
55665566
\indextext{assignment!and lvalue}%
55675567
All
5568-
require a modifiable lvalue as their left operand and return an lvalue
5568+
require a modifiable lvalue as their left operand; their result is an lvalue
55695569
referring to the left operand. The result in all cases is a bit-field if
55705570
the left operand is a bit-field. In all cases, the assignment is
55715571
sequenced after the

0 commit comments

Comments
 (0)