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 /,
The
–(en dash) should probably be removed, between "know" and "+", in the sentence:source:
Unwrap/Unwrap/Content/SixtySeconds/compound-assignment-operators.html
Line 1 in 3a5ee7f
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
After