-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Renamed indexes(of:) to indices(of:) in ArrayExtension #355
Conversation
Generated by 🚫 Danger |
Codecov Report
@@ Coverage Diff @@
## master #355 +/- ##
=======================================
Coverage 90.62% 90.62%
=======================================
Files 53 53
Lines 2508 2508
=======================================
Hits 2273 2273
Misses 235 235
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @Najdan, I agree, it makes more sense now 💯
Could you move the deprecated function into SwiftStdlib/Deprecated/SwiftStdlibDeprecated.swift, and I'll make sure to get this merged in as soon as I can.
Sure. I pushed new commit with requested changes. |
@omaralbeik wait before you close this pull request. I've noticed that I forgot to update Examples.md. I'll check if it's used somewhere else too. |
Examples.md contained indexes(of:) which is renamed to indices(of:)
@omaralbeik Sorry about this late additional commit. I didn't noticed on time because this file is not included in Xcode project. I searched all files in project to see if anywhere else "indexes" is used and it looks like only deprecations are using "indexes" (test is still available for old |
Thank you @Najdan 👍 |
Summary
Renamed method of
ArrayExtensions
indexes(of:)
toindices(of:)
since Apple's API is using that naming. There are few other usages in SwifterSwift project where "indices" is used and this was only place where "indexes" was used.Checklist