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

Making a comparison but use another value #146

Open
Quimoune opened this issue Feb 1, 2022 · 0 comments
Open

Making a comparison but use another value #146

Quimoune opened this issue Feb 1, 2022 · 0 comments

Comments

@Quimoune
Copy link

Quimoune commented Feb 1, 2022

if adjustedRange.upperBound > lastAvailableRange.lowerBound {

Here, you're checking "lastAvailableRange.lowerBound" but you're using just after "lastAvailableRange.upperBound"
need to change to check the lastAvailableRange.upperBound ?

if adjustedRange.upperBound > lastAvailableRange.lowerBound {
let availableRange = adjustedRange.upperBound...lastAvailableRange.upperBound
...
}

Thanks !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant