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,8 +4,10 @@ use anyhow::Result;
use breez_sdk_core::*;
async fn send_payment(sdk: Arc<BreezServices>) -> Result<()> {
// ANCHOR: send-payment
let bolt11 = "...";
sdk.send_payment(bolt11.into(), None).await?;
// ANCHOR_END: send-payment
Ok(())
}