Skip to content

Commit 6d23614

Browse files
committed
Improve lib.rs rustdocs
Improve the main docs by doing: - Remove unneeded `self` from use statement - Add code ticks to `bitcoin_hashes`
1 parent 4c4268f commit 6d23614

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,13 @@
5757
//! Alternately, keys and messages can be parsed from slices, like
5858
//!
5959
//! ```rust
60-
//! use self::secp256k1::{Secp256k1, Message, SecretKey, PublicKey};
60+
//! use secp256k1::{Secp256k1, Message, SecretKey, PublicKey};
6161
//!
6262
//! let secp = Secp256k1::new();
6363
//! let secret_key = SecretKey::from_slice(&[0xcd; 32]).expect("32 bytes, within curve order");
6464
//! let public_key = PublicKey::from_secret_key(&secp, &secret_key);
6565
//! // This is unsafe unless the supplied byte slice is the output of a cryptographic hash function.
66-
//! // See the above example for how to use this library together with bitcoin_hashes.
66+
//! // See the above example for how to use this library together with `bitcoin_hashes`.
6767
//! let message = Message::from_slice(&[0xab; 32]).expect("32 bytes");
6868
//!
6969
//! let sig = secp.sign_ecdsa(&message, &secret_key);

0 commit comments

Comments
 (0)