From 844820dcfaa5c559cb42a1d745365ba7c3072aac Mon Sep 17 00:00:00 2001 From: willcl-ark Date: Mon, 21 Sep 2020 15:32:38 +0100 Subject: [PATCH] Prettify README examples on github --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index ee763380..c87d070e 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,7 @@ The `bdk` library aims to be the core building block for Bitcoin wallets of any ### Sync the balance of a descriptor -```no_run +```rust,no_run use bdk::Wallet; use bdk::database::MemoryDatabase; use bdk::blockchain::{noop_progress, ElectrumBlockchain}; @@ -62,7 +62,7 @@ fn main() -> Result<(), bdk::Error> { ### Generate a few addresses -``` +```rust use bdk::{Wallet, OfflineWallet}; use bdk::database::MemoryDatabase; @@ -84,7 +84,7 @@ fn main() -> Result<(), bdk::Error> { ### Create a transaction -```no_run +```rust,no_run use bdk::{FeeRate, TxBuilder, Wallet}; use bdk::database::MemoryDatabase; use bdk::blockchain::{noop_progress, ElectrumBlockchain}; @@ -122,7 +122,7 @@ fn main() -> Result<(), bdk::Error> { ### Sign a transaction -```no_run +```rust,no_run use bdk::{Wallet, OfflineWallet}; use bdk::database::MemoryDatabase;