This repository was archived by the owner on Apr 13, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -200,7 +200,6 @@ impl FromStr for SiPrefix {
200
200
}
201
201
202
202
/// ```
203
- /// # extern crate lightning_invoice;
204
203
/// use lightning_invoice::Invoice;
205
204
///
206
205
/// let invoice = "lnbc1pvjluezpp5qqqsyqcyq5rqwzqfqqqsyqcyq5rqwzqfqqqsyqcyq5rqwzqfqypqdp\
@@ -220,7 +219,6 @@ impl FromStr for Invoice {
220
219
}
221
220
222
221
/// ```
223
- /// # extern crate lightning_invoice;
224
222
/// use lightning_invoice::*;
225
223
///
226
224
/// let invoice = "lnbc1pvjluezpp5qqqsyqcyq5rqwzqfqqqsyqcyq5rqwzqfqqqsyqcyq5rqwzqfqypqdp\
Original file line number Diff line number Diff line change @@ -24,14 +24,15 @@ pub use de::{ParseError, ParseOrSemanticError};
24
24
/// that only a semantically and syntactically correct Invoice can be built using it.
25
25
///
26
26
/// ```
27
- /// # extern crate secp256k1;
28
- /// # extern crate lightning_invoice;
27
+ /// extern crate secp256k1;
28
+ /// extern crate lightning_invoice;
29
29
///
30
30
/// use secp256k1::Secp256k1;
31
31
/// use secp256k1::key::SecretKey;
32
32
///
33
33
/// use lightning_invoice::{Currency, InvoiceBuilder};
34
34
///
35
+ /// # fn main() {
35
36
/// let private_key = SecretKey::from_slice(
36
37
/// &Secp256k1::without_caps(),
37
38
/// &[
@@ -50,6 +51,7 @@ pub use de::{ParseError, ParseOrSemanticError};
50
51
/// .unwrap();
51
52
///
52
53
/// assert!(invoice.to_string().starts_with("lnbc1"));
54
+ /// # }
53
55
/// ```
54
56
///
55
57
/// # Type parameters
@@ -713,7 +715,6 @@ impl Invoice {
713
715
714
716
/// Constructs an `Invoice` from a `SignedInvoice` by checking all its invariants.
715
717
/// ```
716
- /// # extern crate lightning_invoice;
717
718
/// use lightning_invoice::*;
718
719
///
719
720
/// let invoice = "lnbc1pvjluezpp5qqqsyqcyq5rqwzqfqqqsyqcyq5rqwzqfqqqsyqcyq5rqwzqfqypqdp\
You can’t perform that action at this time.
0 commit comments