Skip to content

Commit 57c54bb

Browse files
committed
Requested comment
1 parent df37aff commit 57c54bb

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/rngs/thread.rs

+5-4
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,11 @@ thread_local!(
8787
}
8888
);
8989

90-
/// Retrieve the lazily-initialized thread-local random number
91-
/// generator, seeded by the system. Intended to be used in method
92-
/// chaining style, e.g. `thread_rng().gen::<i32>()`, or cached locally, e.g.
93-
/// `let mut rng = thread_rng();`.
90+
/// Retrieve the lazily-initialized thread-local random number generator,
91+
/// seeded by the system. Intended to be used in method chaining style,
92+
/// e.g. `thread_rng().gen::<i32>()`, or cached locally, e.g.
93+
/// `let mut rng = thread_rng();`. Invoked by the `Default` trait, making
94+
/// `ThreadRng::default()` equivelent.
9495
///
9596
/// For more information see [`ThreadRng`].
9697
///

0 commit comments

Comments
 (0)