Skip to content

En dash confused with minus #202

@duianto

Description

@duianto

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions