File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1380,8 +1380,8 @@ impl XOnlyPublicKey {
1380
1380
/// let mut key_pair = KeyPair::new(&secp, &mut thread_rng());
1381
1381
/// let (mut public_key, _) = key_pair.x_only_public_key();
1382
1382
/// let original = public_key;
1383
- /// let parity = public_key.tweak_add_assign (&secp, &tweak).expect("Improbable to fail with a randomly generated tweak");
1384
- /// assert!(original.tweak_add_check(&secp, &public_key , parity, tweak));
1383
+ /// let (tweaked, parity) = public_key.add_tweak (&secp, &tweak).expect("Improbable to fail with a randomly generated tweak");
1384
+ /// assert!(original.tweak_add_check(&secp, &tweaked , parity, tweak));
1385
1385
/// # }
1386
1386
/// ```
1387
1387
pub fn tweak_add_check < V : Verification > (
You can’t perform that action at this time.
0 commit comments