Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve discoverability with expect! as alias for unwrap!
See related issue: knurling-rs#867 Its easy to assume unwrap! can not have a message like std's expect. Adding an expect macro will help both autocomplete guide programmers looking for one and those who discount the unwrap entry in the defmt api docs based on their knowledge that std's unwrap can not have a message. The documentation of the expect alias highlights that unwrap works with a message to and points to the unwrap macro docs for details.
- Loading branch information