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-6847] [docs] Array documentation equality operators #49396

Closed
swift-ci opened this issue Jan 26, 2018 · 1 comment
Closed

[SR-6847] [docs] Array documentation equality operators #49396

swift-ci opened this issue Jan 26, 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

@swift-ci
Copy link
Collaborator

Previous ID SR-6847
Radar None
Original Reporter aidantwoods (JIRA User)
Type Bug
Status Resolved
Resolution Done
Environment

N/A

Additional Detail from JIRA
Votes 0
Component/s Standard Library
Labels Bug, Documentation
Assignee None
Priority Medium

md5: 1cc46108ce639261d6e532eaaa61b67a

Issue Description:

The equality operator == (and respectively its negation !=) state something along the lines of:

Returns true if these arrays contain the same elements

However, of course being an array, order is also an important factor (current behaviour of these operators appear to reflect this).

Would propose the docs change to reflect this, say to something like:

Returns true if these arrays contain the same elements in the same order.

https://developer.apple.com/documentation/swift/array
https://developer.apple.com/documentation/swift/array/2949952

P.S. I couldn't find the source for these docs on GitHub, but I'd be happy to make a PR for changes like this instead of filing an issue (opening an issue seems a bit overkill IMO).

@belkadan
Copy link
Contributor

cc @natecook1000

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
This issue was closed.
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

2 participants