about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorJake Goulding <jake.goulding@gmail.com>2014-12-20 17:13:13 -0500
committerJake Goulding <jake.goulding@gmail.com>2014-12-20 17:13:13 -0500
commitbffd802a3fa10e3e56a84e214fc099f297a40930 (patch)
treea9c48106869961ad9c3c5f8b16c9ecde376029f2 /src/libstd
parent1c2df5cc3cfc0c9e80adf9fa6504d55056741c5a (diff)
downloadrust-bffd802a3fa10e3e56a84e214fc099f297a40930.tar.gz
rust-bffd802a3fa10e3e56a84e214fc099f297a40930.zip
Fix small typos in std::rand documentation
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/rand/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/rand/mod.rs b/src/libstd/rand/mod.rs
index 0035e5747aa..c590c0f575e 100644
--- a/src/libstd/rand/mod.rs
+++ b/src/libstd/rand/mod.rs
@@ -45,7 +45,7 @@
 //!     so the "quality" of `/dev/random` is not better than `/dev/urandom` in most cases.
 //!     However, this means that `/dev/urandom` can yield somewhat predictable randomness
 //!     if the entropy pool is very small, such as immediately after first booting.
-//!     Linux 3,17 added `getrandom(2)` system call which solves the issue: it blocks if entropy
+//!     Linux 3.17 added the `getrandom(2)` system call which solves the issue: it blocks if entropy
 //!     pool is not initialized yet, but it does not block once initialized.
 //!     `OsRng` tries to use `getrandom(2)` if available, and use `/dev/urandom` fallback if not.
 //!     If an application does not have `getrandom` and likely to be run soon after first booting,
@@ -126,7 +126,7 @@
 //! > Is it to your advantage to switch your choice?
 //!
 //! The rather unintuitive answer is that you will have a 2/3 chance of winning if
-//! you switch and a 1/3 chance of winning of you don't, so it's better to switch.
+//! you switch and a 1/3 chance of winning if you don't, so it's better to switch.
 //!
 //! This program will simulate the game show and with large enough simulation steps
 //! it will indeed confirm that it is better to switch.