Skip to content

Commit 235e076

Browse files
authored
Merge pull request #26 from kylezs/patch-1
Fix comment on Account::new example
2 parents 05302d1 + 52369c2 commit 235e076

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ master.add_account(account);
5050
// account number 1, sub-account 0 (which usually means receiver) BIP32 look-ahead 10
5151
let account = Account::new(&mut unlocker, AccountAddressType::P2WPKH, 1, 0, 10).unwrap();
5252
master.add_account(account);
53-
// account number 1, sub-account 0 (which usually means change) BIP32 look-ahead 10
53+
// account number 1, sub-account 1 (which usually means change) BIP32 look-ahead 10
5454
let account = Account::new(&mut unlocker, AccountAddressType::P2WPKH, 1, 1, 10).unwrap();
5555
master.add_account(account);
5656

@@ -184,4 +184,4 @@ let reconstructed_master = MasterAccount::from_seed(&reconstructed_seed, 0, Netw
184184
// prove that everything went fine
185185
assert_eq!(master.master_public(), reconstructed_master.master_public());
186186
assert_eq!(master.encrypted(), reconstructed_master.encrypted());
187-
```
187+
```

0 commit comments

Comments
 (0)