Skip to content

Commit cbe8076

Browse files
committed
Remove one instance of Secp256k1::new from docs
One stale construction of a context in docs, remove it.
1 parent 664187e commit cbe8076

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/secret.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,9 +131,8 @@ impl Keypair {
131131
/// ```
132132
/// # #[cfg(feature = "std")] {
133133
/// # use std::str::FromStr;
134-
/// use secp256k1::{Keypair, Secp256k1, SecretKey};
134+
/// use secp256k1::{Keypair, SecretKey};
135135
///
136-
/// let secp = Secp256k1::new();
137136
/// let key = SecretKey::from_str("0000000000000000000000000000000000000000000000000000000000000001").unwrap();
138137
/// let key = Keypair::from_secret_key(&key);
139138
/// // Here we explicitly display the secret value:

0 commit comments

Comments
 (0)