Skip to content

Commit

Permalink
Drive by documentation fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
LLFourn committed Sep 15, 2020
1 parent 396bcde commit 0e45abc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion secp256kfun/src/nonce.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ impl<H: Default, R: NonceRng> Synthetic<H, R> {
}

/// A zero sized type that wraps an instance of an RNG that implementes
/// `Default` e.g. [`ThreadRng`] and [`OsRng`]. `GlobalRng` implements
/// `Default` e.g. [`OsRng`]. `GlobalRng` implements
/// [`NonceRng`] and care has been taken to ensure it is `Sync`.
///
/// # Examples
Expand All @@ -106,6 +106,8 @@ impl<H: Default, R: NonceRng> Synthetic<H, R> {
/// }
/// assert!(is_sync(nonce_rng));
/// ```
///
/// [`OsRng`]: rand_core::OsRng
#[derive(Debug, Default, Clone)]
pub struct GlobalRng<R> {
// Using fn(R) ensures that it is sync even if R is not sync
Expand Down

0 comments on commit 0e45abc

Please sign in to comment.