twostraws / Unwrap

Learn Swift interactively on your iPhone.
https://www.hackingwithswift.com
Other
2.3k stars 312 forks source link

En dash confused with minus #202

Open duianto opened 3 years ago

duianto commented 3 years ago

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: https://github.com/twostraws/Unwrap/blob/3a5ee7f0ec6315791f3f9175438c385a623ba2b4/Unwrap/Content/SixtySeconds/compound-assignment-operators.html#L1

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 /,