From 2265c4ef2ac6dbbb6a2d4afced0a5eb406a3ec32 Mon Sep 17 00:00:00 2001 From: Diggory Hardy Date: Sat, 10 Nov 2018 10:32:15 +0000 Subject: [PATCH] Fix doc test and typo --- README.md | 2 +- src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7f5b5dad..17714c42 100644 --- a/README.md +++ b/README.md @@ -56,7 +56,7 @@ reading the [Upgrade Guide](https://rust-random.github.io/book/update.html). ### Rust version requirements -The since version 0.5, Rand requires **Rustc version 1.22 or greater**. +Since version 0.5, Rand requires **Rustc version 1.22 or greater**. Rand 0.4 and 0.3 (since approx. June 2017) require Rustc version 1.15 or greater. Subsets of the Rand code may work with older Rust versions, but this is not supported. diff --git a/src/lib.rs b/src/lib.rs index 6b59ff98..f9d04c5a 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -31,7 +31,7 @@ //! let mut rng = rand::thread_rng(); //! let y: f64 = rng.gen(); // generates a float between 0 and 1 //! -//! let nums: Vec = (1..100).collect(); +//! let mut nums: Vec = (1..100).collect(); //! nums.shuffle(&mut rng); //! ``` //!