Skip to content

Commit 5c59c1c

Browse files
authored
Merge pull request #232 from joegesualdo/joegesualdo-patch-1
Remove String conversion in README example.
2 parents c861370 + 011599a commit 5c59c1c

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)