rust-lang / impl-trait-utils

Utilities for working with impl traits in Rust.
Apache License 2.0
89 stars 9 forks source link

refactor(docs): add example to README #23

Closed t3hmrman closed 8 months ago

t3hmrman commented 8 months ago

While the current README is very descriptive, some might find the rustdoc to be similarly concise and descriptive of what trait_variant should be used for.

This commit adds the code example that is used in rustdoc to the README.md which shows up on GitHub and crates.io.

tmandry commented 8 months ago

Thanks!