Skip to content

Commit 011599a

Browse files
authored
Remove String conversion in README example.
1 parent 657eebd commit 011599a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ use bitcoincore_rpc::{Auth, Client, RpcApi};
2626

2727
fn main() {
2828

29-
let rpc = Client::new("http://localhost:8332".to_string(),
29+
let rpc = Client::new("http://localhost:8332",
3030
Auth::UserPass("<FILL RPC USERNAME>".to_string(),
3131
"<FILL RPC PASSWORD>".to_string())).unwrap();
3232
let best_block_hash = rpc.get_best_block_hash().unwrap();

0 commit comments

Comments
 (0)