Use snippet anchor instead of line range

This commit is contained in:
ok300
2023-10-23 16:52:13 +02:00
parent 32c39e2543
commit 1caf35a802
28 changed files with 80 additions and 28 deletions

View File

@@ -4,6 +4,7 @@ use anyhow::Result;
use breez_sdk_core::*;
async fn receive_payment(sdk: Arc<BreezServices>) -> Result<()> {
// ANCHOR: receive-payment
let res = sdk.receive_payment(
ReceivePaymentRequest {
amount_sats: 3000,
@@ -15,6 +16,7 @@ async fn receive_payment(sdk: Arc<BreezServices>) -> Result<()> {
use_description_hash: None
})
.await?;
// ANCHOR_END: receive-payment
Ok(())
}