-
-
Notifications
You must be signed in to change notification settings - Fork 358
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
Replace a few uses of 1:length
idiom with eachindex
#4210
Conversation
Let's merge one the tests pass |
Codecov Report
@@ Coverage Diff @@
## master #4210 +/- ##
==========================================
+ Coverage 77.88% 77.91% +0.03%
==========================================
Files 28 28
Lines 7081 7083 +2
==========================================
+ Hits 5515 5519 +4
+ Misses 1566 1564 -2
Continue to review full report at Codecov.
|
Weird - these must have been added after #2304 ? Implementing the general array interface back then was a lot of effort |
Huh. Oh I'll bet.. There were a few others that popped up as well when searching https://pkg.juliahub.com/ui/Search?type=code&q=1%3Alength&r=true&p=Plots%3A91a5bcdd-55d7-5caf-9e0b-520d859cae80 |
Perhaps you could also capture the rest and we merge it in altogether? |
Sure! |
Hmm, it didn't like that at all... Switching back to just the two easy ones for now |
That's a little strange, not sure why such things could happen |
Yeah, not sure.. they seemed innocuous enough but I guess it's the first time I've spent any time with this codebase. Looks better now I guess though! |
Thanks for diggin in and since this is your first contribution, you might want to take a look at #3503 . |
Oh cool! Thanks! |
Not exhaustive, but I think this catches the only places this idiom was used together with
@inbounds
. Should be a simple swap out.