Skip to content

Commit 8ec3e5a

Browse files
committed
Minor doc adjustments
1 parent cff8e09 commit 8ec3e5a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/lib.rs

+4-3
Original file line numberDiff line numberDiff line change
@@ -461,10 +461,11 @@ pub trait Rng {
461461
///
462462
/// This is the only method which allows an RNG to report errors while
463463
/// generating random data; other methods either handle the error
464-
/// internally or panic. This method is intended to allow error-handling
465-
/// when seeding keys or PRNGs from external (true) RNGs.
464+
/// internally or panic. This method is
465+
/// the intended way to use external (true) RNGs, like `OsRng`. Its main
466+
/// use-cases are to generate keys and to seed (infallible) PRNGs.
466467
///
467-
/// Other than error handling, this is identical to [`fill`], and
468+
/// Other than error handling, this method is identical to [`fill`], and
468469
/// has a default implementation simply wrapping [`fill`].
469470
///
470471
/// [`fill`]: trait.Rng.html#method.fill

0 commit comments

Comments
 (0)