]> Untitled Git - bdk/commitdiff
Prettify README examples on github
authorwillcl-ark <will8clark@gmail.com>
Mon, 21 Sep 2020 14:32:38 +0000 (15:32 +0100)
committerwillcl-ark <will8clark@gmail.com>
Mon, 21 Sep 2020 14:32:38 +0000 (15:32 +0100)
README.md

index ee763380070d577ee31c2ebcf7f7d537b27e808e..c87d070e1229d8653cc0b03e85c1507a05adc5d5 100644 (file)
--- 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;