-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
remove Random.gentype #31988
remove Random.gentype #31988
Conversation
This was missed in JuliaLang#31787.
it is just confusing at this stage.
In the Die example, define eltype from the beginning, instead of fixing it later, but mention what would happen if we didn't. Incidental typo fixes and clarifications.
Thanks But I think you should separate (in a different PR) the documentation improvement (which doesn't involve |
OK, will cherry-pick this one and make two new PRs. |
Heu, why not keep this one open and open only one other PR? |
Did that, putting the trivial docs changes in #31990. But my understanding is that if changes are requested there, then it will diverge from this one so I would need a new PR for the |
Indeed, the two PRs should be independant. What you can do here is to revert the documentation commits which are now included in that other PR. |
OK, I will figure this out once the other PR is merged (I am assuming that can happen relatively quickly). |
@@ -89,7 +89,7 @@ The object returned by `Sampler` is then used to generate the random values. Whe | |||
```julia | |||
rand(rng, sampler) | |||
``` | |||
for the particular sampler returned by `Sampler(rng, X, repetition)` | |||
for the particular sampler returned by `Sampler(rng, X, repetition)`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, the period was in this commit :)
Closing in favor of #32008. |
Did you close here because you didn't know how to update this PR with some commits removed? |
I got in a hopeless tangle with git after merging, so yes. Sorry. |
No worries! In case this can help: assuming you have 2 branches locally, one corresponding to the current state ("hopeless tangle") of your PR, say
|
Thanks, I will do this next time. |
Fixes #31968 by replacing
Random.gentype
withBase.eltype
.Also fix the overlooked issues in the discussion of #31787.
In addition, incidental clarifications and typo fixes.
In the
Die
example, defineeltype
from the beginning, instead of fixing it later, but mention what would happen if we didn't.@rfourquet