Skip to content

Commit 3fa6762

Browse files
committed
Add link to referenced commit
To save devs looking up the commit themselves add a link to it in the rustdoc.
1 parent f5e68f3 commit 3fa6762

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/lib.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -414,9 +414,10 @@ impl<C: Context> Secp256k1<C> {
414414
(bytes + word_size - 1) / word_size
415415
}
416416

417-
/// (Re)randomizes the Secp256k1 context for cheap sidechannel resistance;
418-
/// see comment in libsecp256k1 commit d2275795f by Gregory Maxwell. Requires
419-
/// compilation with "rand" feature.
417+
/// (Re)randomizes the Secp256k1 context for cheap sidechannel resistance.
418+
///
419+
/// Requires compilation with "rand" feature. See comment by Gregory Maxwell in
420+
/// [libsecp256k1](https://github.com/bitcoin-core/secp256k1/commit/d2275795ff22a6f4738869f5528fbbb61738aa48).
420421
#[cfg(any(test, feature = "rand"))]
421422
#[cfg_attr(docsrs, doc(cfg(feature = "rand")))]
422423
pub fn randomize<R: Rng + ?Sized>(&mut self, rng: &mut R) {

0 commit comments

Comments
 (0)