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

Explicitly call out reverse ranges in : and range docstring #53626

Merged
merged 12 commits into from
Apr 2, 2024

Conversation

BioTurboNick
Copy link
Contributor

@BioTurboNick BioTurboNick commented Mar 6, 2024

People often think 5:1 should make a range from 5 to 1.

Might be worth emphasizing this issue and how to really do it in the docstring for :, as suggested in this PR.

See e.g.: https://discourse.julialang.org/t/question-about-range-operator/111247/5

@BioTurboNick BioTurboNick changed the title Explicitly call out reverse ranges in : docstring Explicitly call out reverse ranges in : and range docstring Mar 6, 2024
@stevengj stevengj added the domain:docs This change adds or pertains to documentation label Mar 6, 2024
base/range.jl Outdated Show resolved Hide resolved
base/range.jl Outdated Show resolved Hide resolved
base/range.jl Outdated Show resolved Hide resolved
base/range.jl Show resolved Hide resolved
base/range.jl Show resolved Hide resolved
BioTurboNick and others added 2 commits March 11, 2024 10:29
Co-authored-by: Steven G. Johnson <stevenj@mit.edu>
@stevengj stevengj added the status:merge me PR is reviewed. Merge when all tests are passing label Apr 2, 2024
@fatteneder fatteneder merged commit e99627f into JuliaLang:master Apr 2, 2024
8 checks passed
@fatteneder fatteneder removed the status:merge me PR is reviewed. Merge when all tests are passing label Apr 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
domain:docs This change adds or pertains to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants