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

Clarify documentation around the relation to the rand crate #489

Merged
merged 2 commits into from
Sep 2, 2020

Conversation

carols10cents
Copy link
Contributor

I'm submitting a(n) other - documentation improvement

Description

The rand crate changed its trait names, so these docs were referencing a
trait that doesn't exist in the current version of rand. Change to be a
bit more vague to avoid this getting out of date again.

Also "use rand instead" wasn't very clear because "rand" doesn't contain
something clearly equivalent like get_uuid_v4. To be clearer, add a
reference to the Builder::from_bytes function in this crate.

Motivation

It took me a few minutes to figure out what this documentation was saying, and I'd like to save someone else those few minutes in the future.

Tests

N/A

Related Issue(s)

None

The rand crate changed its trait names, so these docs were referencing a
trait that doesn't exist in the current version of rand. Change to be a
bit more vague to avoid this getting out of date again.

Also "use rand instead" wasn't very clear because "rand" doesn't contain
something clearly equivalent like `get_uuid_v4`. To be clearer, add a
reference to the `Builder::from_bytes` function in this crate.
@kinggoesgaming
Copy link
Member

bors r+

bors bot added a commit that referenced this pull request Aug 31, 2020
489: Clarify documentation around the relation to the rand crate r=kinggoesgaming a=carols10cents

**I'm submitting a(n)** other - documentation improvement

# Description

The rand crate changed its trait names, so these docs were referencing a
trait that doesn't exist in the current version of rand. Change to be a
bit more vague to avoid this getting out of date again.

Also "use rand instead" wasn't very clear because "rand" doesn't contain
something clearly equivalent like `get_uuid_v4`. To be clearer, add a
reference to the `Builder::from_bytes` function in this crate.

# Motivation

It took me a few minutes to figure out what this documentation was saying, and I'd like to save someone else those few minutes in the future.

# Tests

N/A

# Related Issue(s)

None


Co-authored-by: Carol (Nichols || Goulding) <[email protected]>
@bors
Copy link
Contributor

bors bot commented Aug 31, 2020

Timed out.

@kinggoesgaming
Copy link
Member

Hi can you merge changes from master and then I can merge

@carols10cents
Copy link
Contributor Author

Done!

@kinggoesgaming
Copy link
Member

bors r+

@bors
Copy link
Contributor

bors bot commented Sep 2, 2020

Build succeeded:

@bors bors bot merged commit dfbac0e into uuid-rs:master Sep 2, 2020
@carols10cents carols10cents deleted the improve-v4-docs branch September 2, 2020 12:11
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.

2 participants