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

Move a doc out, add doctests to some things #22860

Merged
merged 1 commit into from
Jul 19, 2017
Merged

Conversation

kshyatt
Copy link
Contributor

@kshyatt kshyatt commented Jul 18, 2017

I changed the wording on BoundsError a little to make it clear that the index is the problem.

@kshyatt kshyatt added the docs This change adds or pertains to documentation label Jul 18, 2017
@kshyatt kshyatt requested a review from KristofferC July 18, 2017 22:32
ERROR: BoundsError: attempt to access 7-element Array{Float64,1} at index [8]
Stacktrace:
[1] getindex(::Array{Float64,1}, ::Int64) at ./array.jl:586

Copy link
Contributor

Choose a reason for hiding this comment

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

maybe add the [...] here to make it clear there's truncated extra content?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I copy-pasted this right from the REPL, there was no extra content?

Copy link
Contributor

Choose a reason for hiding this comment

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

oh the rare shallow stacktrace. repl filtered out exactly what it should've. when run as a doctest there's no complaints about the stacktrace being longer?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'll check just to make sure

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yep! Passed locally for me.

Copy link
Contributor

@tkelman tkelman left a comment

Choose a reason for hiding this comment

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

"What even are numbers?"

🥇

@kshyatt
Copy link
Contributor Author

kshyatt commented Jul 19, 2017

Is that 64 bit linux fail my fault?

@kshyatt
Copy link
Contributor Author

kshyatt commented Jul 19, 2017

Bumpity bump

@StefanKarpinski StefanKarpinski merged commit 54ba4e5 into master Jul 19, 2017
@StefanKarpinski StefanKarpinski deleted the ksh/doctests branch July 19, 2017 18:43
@StefanKarpinski
Copy link
Member

I've been seeing that failure all over, not related.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs This change adds or pertains to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants