Skip to content

Commit 2265c4e

Browse files
committed
Fix doc test and typo
1 parent c3c8288 commit 2265c4e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ reading the [Upgrade Guide](https://rust-random.github.io/book/update.html).
5656

5757
### Rust version requirements
5858

59-
The since version 0.5, Rand requires **Rustc version 1.22 or greater**.
59+
Since version 0.5, Rand requires **Rustc version 1.22 or greater**.
6060
Rand 0.4 and 0.3 (since approx. June 2017) require Rustc version 1.15 or
6161
greater. Subsets of the Rand code may work with older Rust versions, but this
6262
is not supported.

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
//! let mut rng = rand::thread_rng();
3232
//! let y: f64 = rng.gen(); // generates a float between 0 and 1
3333
//!
34-
//! let nums: Vec<i32> = (1..100).collect();
34+
//! let mut nums: Vec<i32> = (1..100).collect();
3535
//! nums.shuffle(&mut rng);
3636
//! ```
3737
//!

0 commit comments

Comments
 (0)