From 8d3697db161932edf410a979dedfacb85b0270b4 Mon Sep 17 00:00:00 2001 From: Rolf Sievers Date: Sat, 12 Aug 2017 18:25:05 +0200 Subject: [PATCH] Edit comment, according to suggestion --- site/guide/pastebin.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/site/guide/pastebin.md b/site/guide/pastebin.md index fac31cf1..98c0fc29 100644 --- a/site/guide/pastebin.md +++ b/site/guide/pastebin.md @@ -144,10 +144,9 @@ pub struct PasteID<'a>(Cow<'a, str>); impl<'a> PasteID<'a> { /// Generate a _probably_ unique ID with `size` characters. For readability, - /// the characters used are from the sets [0-9], [A-Z], [a-z]. The - /// probability of a collision depends on the value of `size` and - /// the amount of IDs generated. If you want to learn more, this is known as - /// the birthday problem: https://en.wikipedia.org/wiki/Birthday_problem + /// the characters used are from the sets [0-9], [A-Z], [a-z]. + /// The probability of a collision depends on the value of `size` and + /// the number of IDs generated thus far. pub fn new(size: usize) -> PasteID<'static> { let mut id = String::with_capacity(size); let mut rng = rand::thread_rng();