rust-bitcoin / bitcoin_hashes

Simple library which implements a few hashes and does nothing else
Creative Commons Zero v1.0 Universal
66 stars 52 forks source link

Add docs to the code create by sha256t_hash_newtype macro #153

Closed tcharding closed 2 years ago

tcharding commented 2 years ago

When using the sha256t_hash_newtype currently no docs are generated, this causes lint errors for users who lint for such things.

Add docs to the new type created by the sha256t_hash_newtype macro.

(This is identical to how we do it in the duplicate macro of the same name in rust-bitcoin, which can be removed in favour of this one after this patch is applied.)