- /// Sets the [`Bolt12Invoice::relative_expiry`] as seconds since [`Bolt12Invoice::created_at`].
- /// Any expiry that has already passed is valid and can be checked for using
- /// [`Bolt12Invoice::is_expired`].
+ #[doc = concat!("Sets the [`", stringify!($invoice_type), "::relative_expiry`]")]
+ #[doc = concat!("as seconds since [`", stringify!($invoice_type), "::created_at`].")]
+ #[doc = "Any expiry that has already passed is valid and can be checked for using"]
+ #[doc = concat!("[`", stringify!($invoice_type), "::is_expired`].")]