Skip to content

Conversation

@deweyx
Copy link

@deweyx deweyx commented Oct 31, 2025

Pastebin example uses now deprecated rand::gen() which was changed due to the reserved gen keyword in Rust 2024 edition.

Rather than changing dependencies or updating the guide to specify an older edition, I've updated to use gen_range (should be best practice to avoid an infinitesimal bias anyway). This should work with any edition.

Also fixed typos I noticed in the CONTRIBUTING doc.

@deweyx deweyx changed the title avoid new gen keyword in pastebin example; couple of typo fixes Update pastebin example to avoid new gen reserved keyword; couple of typo fixes Oct 31, 2025
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