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

Updated the documentation for Range function #34467

Closed
wants to merge 2 commits into from

Conversation

kamalojasv181
Copy link
Contributor

@kamalojasv181 kamalojasv181 commented Jan 21, 2020

Closes #33798

@@ -1408,3 +1408,4 @@ print-%:
# Literal values that are hard to use in Makefiles otherwise:
COMMA:=,
SPACE:=$(eval) $(eval)
USE_BINARYBUILDER_LLVM=0
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Revert this change.

base/range.jl Outdated Show resolved Hide resolved
Copy link
Member

@StefanKarpinski StefanKarpinski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A couple of changes required.

If `step` and `stop` are provided and `length` is not, the overall range length will be computed
automatically such that the elements are `step` spaced (a [`StepRange`](@ref)).
In case the elements are not simple numeric, elements are spaced using (a [`LinRange`](@ref))
# Example
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The last sentence should probably be finished with a period, and also the brackets look strange. Between the main docstring and the # Example header you could also introduce an empty line, though I'm not sure that makes a difference in the end.

@kamalojasv181
Copy link
Contributor Author

#34475 created a new PR

@stevengj
Copy link
Member

@kamalojasv181, in the future, please don't create multiple PRs for the same issue. Just update your existing PR.

@stevengj stevengj closed this Jan 22, 2020
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

Successfully merging this pull request may close these issues.

Possible documentation error: range function docstring at julia/base/range.jl
4 participants