Skip to content

Commit 0b62f5e

Browse files
committed
Fix incorrect timelock docs
We have mixed up relative/absolute on the trait methods for `from_after` and `from_older`.
1 parent 832fc8e commit 0b62f5e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/miniscript/types/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -302,13 +302,13 @@ pub trait Property: Sized {
302302
/// Type property of a timelock
303303
fn from_time(t: u32) -> Self;
304304

305-
/// Type property of a relative timelock. Default implementation simply
305+
/// Type property of an absolute timelock. Default implementation simply
306306
/// passes through to `from_time`
307307
fn from_after(t: u32) -> Self {
308308
Self::from_time(t)
309309
}
310310

311-
/// Type property of an absolute timelock. Default implementation simply
311+
/// Type property of a relative timelock. Default implementation simply
312312
/// passes through to `from_time`
313313
fn from_older(t: u32) -> Self {
314314
Self::from_time(t)

0 commit comments

Comments
 (0)