Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ code you contribute must be:

* **Commented:** Complex or subtle functionality must be properly commented.
* **Documented:** Public items must have doc comments with examples.
* **Styled:** Your code must folow the [Code Style Conventions].
* **Styled:** Your code must follow the [Code Style Conventions].
* **Simple:** Your code should accomplish its task as simply and
idiomatically as possible.
* **Tested:** You must write (and pass) convincing [tests](#testing) for all
Expand Down Expand Up @@ -68,7 +68,7 @@ If you spot an open issue that you'd like to resolve:
4. **Wait for a review, iterate, and polish.**

If a review doesn't come in a few days, feel free to ping a maintainer.
Once somene reviews your PR, integrate their feedback. If the PR solves the
Once someone reviews your PR, integrate their feedback. If the PR solves the
issue (which it should because you have passing tests) and fits the project
(which it should since you sought feedback _before_ submitting), it will be
_conditionally_ approved pending final polish: documentation (rustdocs,
Expand Down
2 changes: 1 addition & 1 deletion docs/guide/12-pastebin.md
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ Before we continue, we'll need to make a few design decisions.
let mut id = String::with_capacity(size);
let mut rng = rand::thread_rng();
for _ in 0..size {
id.push(BASE62[rng.gen::<usize>() % 62] as char);
id.push(BASE62[rng.gen_range(0..62)] as char);
}

PasteId(Cow::Owned(id))
Expand Down
2 changes: 1 addition & 1 deletion examples/pastebin/src/paste_id.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ impl PasteId<'_> {
let mut id = String::with_capacity(size);
let mut rng = rand::thread_rng();
for _ in 0..size {
id.push(BASE62[rng.gen::<usize>() % 62] as char);
id.push(BASE62[rng.gen_range(0..62)] as char);
}

PasteId(Cow::Owned(id))
Expand Down