Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

En dash confused with minus #202

Open
duianto opened this issue Aug 28, 2021 · 0 comments
Open

En dash confused with minus #202

duianto opened this issue Aug 28, 2021 · 0 comments

Comments

@duianto
Copy link

duianto commented Aug 28, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant