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

Editorial: fix the Unary - Operator's description #3025

Merged
merged 1 commit into from Mar 16, 2023

Conversation

fangniyima
Copy link

@fangniyima fangniyima commented Mar 4, 2023

Closes #3024
change:
The unary - operator converts its operand to Number type and then negates it.
to:
The unary - operator converts its operand to a numeric value and then negates it.

@hax
Copy link
Member

hax commented Mar 4, 2023

Maybe we could change "Number type" (6.1.6.1 The Number Type) to "Numeric type" (6.1.6 Numeric Types) ?

@ljharb

This comment was marked as resolved.

@fangniyima

This comment was marked as resolved.

@jmdyck
Copy link
Collaborator

jmdyck commented Mar 5, 2023

@hax:

Maybe we could change "Number type" (6.1.6.1 The Number Type) to "Numeric type" (6.1.6 Numeric Types) ?

I.e., you're suggesting "... converts its operand to Numeric type ..."?

I don't think that works, because it implies there's a type named "Numeric", which there isn't.

@bakkot bakkot added the ready to merge Editors believe this PR needs no further reviews, and is ready to land. label Mar 15, 2023
@ljharb ljharb merged commit 6a1b8f7 into tc39:main Mar 16, 2023
7 checks passed
@ljharb

This comment was marked as resolved.

@fangniyima

This comment was marked as resolved.

@ljharb

This comment was marked as resolved.

@fangniyima

This comment was marked as resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
editorial change ready to merge Editors believe this PR needs no further reviews, and is ready to land.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Description of the UNary - Operator
6 participants