Skip to content

Commit

Permalink
Merge pull request #1106 from Lucretiel/patch-1
Browse files Browse the repository at this point in the history
Tiny docs update
  • Loading branch information
dhardy committed Mar 20, 2021
2 parents 3a03c9e + cfbd0c6 commit e23ac91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rng.rs
Expand Up @@ -28,7 +28,7 @@ use core::{mem, slice};
/// - Since `Rng: RngCore` and every `RngCore` implements `Rng`, it makes no
/// difference whether we use `R: Rng` or `R: RngCore`.
/// - The `+ ?Sized` un-bounding allows functions to be called directly on
/// type-erased references; i.e. `foo(r)` where `r: &mut RngCore`. Without
/// type-erased references; i.e. `foo(r)` where `r: &mut dyn RngCore`. Without
/// this it would be necessary to write `foo(&mut r)`.
///
/// An alternative pattern is possible: `fn foo<R: Rng>(rng: R)`. This has some
Expand Down

0 comments on commit e23ac91

Please sign in to comment.