We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3a03c9e commit cfbd0c6Copy full SHA for cfbd0c6
src/rng.rs
@@ -28,7 +28,7 @@ use core::{mem, slice};
28
/// - Since `Rng: RngCore` and every `RngCore` implements `Rng`, it makes no
29
/// difference whether we use `R: Rng` or `R: RngCore`.
30
/// - The `+ ?Sized` un-bounding allows functions to be called directly on
31
-/// 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
32
/// this it would be necessary to write `foo(&mut r)`.
33
///
34
/// An alternative pattern is possible: `fn foo<R: Rng>(rng: R)`. This has some
0 commit comments