Skip to content

Commit b2cdc98

Browse files
committed
docs: Remove one instance of context construction
Docs are not linted, this `Secp256k1` is not needed.
1 parent 2e5f65b commit b2cdc98

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/key/secret.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,8 @@ mod encapsulate {
4242
///
4343
/// ```
4444
/// # #[cfg(all(feature = "rand", feature = "std"))] {
45-
/// use secp256k1::{rand, Secp256k1, SecretKey};
45+
/// use secp256k1::{rand, SecretKey};
4646
///
47-
/// let secp = Secp256k1::new();
4847
/// let secret_key = SecretKey::new(&mut rand::rng());
4948
/// # }
5049
/// ```

0 commit comments

Comments
 (0)