-
Notifications
You must be signed in to change notification settings - Fork 313
Open
Description
The – (en dash) should probably be removed, between "know" and "+", in the sentence:
These look like the existing operators you know – +, -, *, and /, but they have an = on the end because they assign the result back to whatever variable you were using.
source:
| <p>Swift has shorthand operators that combine one operator with an assignment, so you can change a variable in place. These look like the existing operators you know – <code>+</code>, <code>-</code>, <code>*</code>, and <code>/</code>, but they have an <code>=</code> on the end because they assign the result back to whatever variable you were using.</p> |
Otherwise, someone might wonder why there are two (a long, and a short) minus signs,
and what the result would be, if a calculation used either the long or short sign.
Before
These look like the existing operators you know – +, -, *, and /,
After
These look like the existing operators you know +, -, *, and /,
Metadata
Metadata
Assignees
Labels
No labels