Skip to content

Commit cfbd0c6

Browse files
authored
Tiny docs update
1 parent 3a03c9e commit cfbd0c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rng.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ use core::{mem, slice};
2828
/// - Since `Rng: RngCore` and every `RngCore` implements `Rng`, it makes no
2929
/// difference whether we use `R: Rng` or `R: RngCore`.
3030
/// - The `+ ?Sized` un-bounding allows functions to be called directly on
31-
/// type-erased references; i.e. `foo(r)` where `r: &mut RngCore`. Without
31+
/// type-erased references; i.e. `foo(r)` where `r: &mut dyn RngCore`. Without
3232
/// this it would be necessary to write `foo(&mut r)`.
3333
///
3434
/// An alternative pattern is possible: `fn foo<R: Rng>(rng: R)`. This has some

0 commit comments

Comments
 (0)