Increment lock value
Currently in one of the rustdoc examples showing lock satisfaction we use two locks with the same value, this obfuscates which lock is doing the satisfying and which lock is being satisfied. Increment the value in one of the locks so it is obvious which lock is which.
This commit is contained in:
parent
4e85cd0065
commit
98cbdb5a5c
|
@ -318,7 +318,7 @@ impl LockTime {
|
||||||
/// ```rust
|
/// ```rust
|
||||||
/// # use bitcoin::absolute::{LockTime, LockTime::*};
|
/// # use bitcoin::absolute::{LockTime, LockTime::*};
|
||||||
/// # let n = LockTime::from_consensus(100); // n OP_CHECKLOCKTIMEVERIFY
|
/// # let n = LockTime::from_consensus(100); // n OP_CHECKLOCKTIMEVERIFY
|
||||||
/// # let lock_time = LockTime::from_consensus(100); // nLockTime
|
/// # let lock_time = LockTime::from_consensus(100 + 1); // nLockTime
|
||||||
///
|
///
|
||||||
/// let is_satisfied = match (n, lock_time) {
|
/// let is_satisfied = match (n, lock_time) {
|
||||||
/// (Blocks(n), Blocks(lock_time)) => n <= lock_time,
|
/// (Blocks(n), Blocks(lock_time)) => n <= lock_time,
|
||||||
|
|
Loading…
Reference in New Issue