From: Steve Myers Date: Fri, 13 Dec 2024 15:24:33 +0000 (-0600) Subject: Merge bitcoindevkit/bdk#1680: docs(wallet): reword the `next_unused_address` doc X-Git-Tag: core-0.4.1~4 X-Git-Url: http://internal-gitweb-vhost/script/%22https:/database/scripts/static/struct.CommandStringError.html?a=commitdiff_plain;h=c53781bbf125ac95437040983a1da85fcd7343e6;p=bdk Merge bitcoindevkit/bdk#1680: docs(wallet): reword the `next_unused_address` doc b39cf08c98d9a5b53bb0eacd53c71c341ba37f76 docs(wallet): reword the `next_unused_address` doc (Leonardo Lima) Pull request description: ### Description Adds an example on what `used` stands for, and make it explicit that it has the same behavior as `Wallet::reveal_next_address` in the scenario where all previously revealed addresses have been used. ### Notes to the reviewers Is there any other behavior of `next_unused_address` we'd need to make clear through documentation ? ### Changelog notice - Improve the `Wallet::next_unused_address` documentation to better describe expected behavior/usage. ### Checklists #### All Submissions: * [x] I've signed all my commits * [x] I followed the [contribution guidelines](https://github.com/bitcoindevkit/bdk/blob/master/CONTRIBUTING.md) * [x] I ran `cargo fmt` and `cargo clippy` before committing #### New Features: * [ ] I've added tests for the new feature * [ ] I've added docs for the new feature #### Bugfixes: * [ ] This pull request breaks the existing API * [ ] I've added tests to reproduce the issue which are now passing * [ ] I'm linking the issue being fixed by this PR ACKs for top commit: notmandatory: ACK b39cf08c98d9a5b53bb0eacd53c71c341ba37f76 ValuedMammal: ACK b39cf08c98d9a5b53bb0eacd53c71c341ba37f76 Tree-SHA512: af4e912db9b3283527c00ed91a72c1c01f1dd6d8889cf345c6347e77152f7e3aadc93c7040e4283411e078b3394fb46f1b4d7f6f872f39d2219e03f242ee1130 --- c53781bbf125ac95437040983a1da85fcd7343e6