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

[SR-9214] Documentation for Numeric operators incorrectly uses examples with the unary minus operator #51703

Open
xwu opened this issue Nov 9, 2018 · 1 comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. documentation standard library Area: Standard library umbrella

Comments

@xwu
Copy link
Collaborator

xwu commented Nov 9, 2018

Previous ID SR-9214
Radar None
Original Reporter @xwu
Type Bug
Additional Detail from JIRA
Votes 0
Component/s Standard Library
Labels Bug, Documentation
Assignee None
Priority Medium

md5: 87b1bd9232720a092b692702ce8bb6a5

Issue Description:

The ‘Numeric’ protocol does not have a unary minus operator, but some documentation examples nonetheless use that operator. Those examples should probably be removed.

Details are discussed here: https://github.com/apple/swift/pull/20422/files#diff-feb4a95eae28180fee8e99cb943ffb9aR44

@xwu
Copy link
Collaborator Author

xwu commented Nov 9, 2018

Cc @natecook1000 @stephentyrone

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. documentation standard library Area: Standard library umbrella
Projects
None yet
Development

No branches or pull requests

1 participant