We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e317d0 commit e81c6efCopy full SHA for e81c6ef
src/key.rs
@@ -540,7 +540,8 @@ impl PublicKey {
540
/// let mut rng = rand::thread_rng();
541
/// let (_, pk1) = secp.generate_keypair(&mut rng);
542
/// let (_, pk2) = secp.generate_keypair(&mut rng);
543
- /// let sum = PublicKey::combine_keys(&[&pk1, &pk2]).expect("It's improbable to fail for 2 random public keys");
+ /// let (_, pk3) = secp.generate_keypair(&mut rng);
544
+ /// let sum = PublicKey::combine_keys(&[&pk1, &pk2, &pk3]).expect("It's improbable to fail for 3 random public keys");
545
/// # }
546
/// ```
547
pub fn combine_keys(keys: &[&PublicKey]) -> Result<PublicKey, Error> {
0 commit comments