]> Untitled Git - bdk/commit
Use `default: D` mirroring Rust documentation
authorTobin Harding <me@tobin.cc>
Thu, 6 May 2021 03:54:52 +0000 (13:54 +1000)
committerTobin Harding <me@tobin.cc>
Thu, 6 May 2021 23:08:49 +0000 (09:08 +1000)
commit9aea90bd810171e868b365d3b97f2cc2988300fd
treeabdce8b78d21391e5f915b82efda0616f9a0b566
parent3c7bae9ce9ecd02f18bd392202e3ac9e3af9c6b3
Use `default: D` mirroring Rust documentation

Currently we use `F: f` for the argument that is the default function
passed to `map_or_else` and pass a closure for the second argument. This
bent my brain while reading the documentation because the docs use
`default: D` for the first and `f: F` for the second. Although this is
totally trivial it makes deciphering the combinator chain easier if we
name the arguments the same way the Rust docs do.

Use `default: D` for the identifier of the default function passed into `map_or_else`.
src/database/mod.rs