You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expected to see:
Whitespace has two uses: to separate tokens in the source file and to help determine whether an operator is a prefix, postfix, or a binary (see Operators), but is otherwise ignored. Actually observed:
Whitespace has two uses: to separate tokens in the source file and to help determine whether an operator is a prefix or postfix (see Operators), but is otherwise ignored.
Evidence: Link Lexical Structure - Operators
The six paragraph after the "Note" states:
"The whitespace around an operator is used to determine whether an operator is used as a prefix operator, a postfix operator, or a binary operator. This behavior is summarized in the following rules:"
and the first rule states:
if an operator has whitespace around both sides or around neither side, it’s treated as a binary operator. As an example, the +++ operator in a+++b and a +++ b is treated as a binary operator"
A description of the environment that reproduces the problem.
This issue happens is all Swift Documentation.
I therefore submit the first sentence of the Lexical Structure - Whitespace and Comments should add binary.
The text was updated successfully, but these errors were encountered:
Additional Detail from JIRA
md5: 08765d1b3b6953aa5c103288fb05114d
Issue Description:
Description of Problem:
Documentation Issue: Lexical Structure - Whitespace and Comments section:
first sentence should add "binary"
Link to Lexical Structure - Whitespace and Comments
Expected to see:
Whitespace has two uses: to separate tokens in the source file and to help determine whether an operator is a prefix, postfix, or a binary (see Operators), but is otherwise ignored.
Actually observed:
Whitespace has two uses: to separate tokens in the source file and to help determine whether an operator is a prefix or postfix (see Operators), but is otherwise ignored.
Evidence:
Link Lexical Structure - Operators
The six paragraph after the "Note" states:
"The whitespace around an operator is used to determine whether an operator is used as a prefix operator, a postfix operator, or a binary operator. This behavior is summarized in the following rules:"
and the first rule states:
if an operator has whitespace around both sides or around neither side, it’s treated as a binary operator. As an example, the
+++
operator ina+++b
anda +++ b
is treated as a binary operator"A description of the environment that reproduces the problem.
This issue happens is all Swift Documentation.
I therefore submit the first sentence of the Lexical Structure - Whitespace and Comments should add binary.
The text was updated successfully, but these errors were encountered: