docs: fix set_reporter to set_hook (#79)

* docs: fix set_reporter to set_hook

Signed-off-by: Benjamin Coenen <5719034+bnjjj@users.noreply.github.com>

* docs: rename MietteHandlerOptions to MietteHandlerOpts

Signed-off-by: Benjamin Coenen <5719034+bnjjj@users.noreply.github.com>
This commit is contained in:
Coenen Benjamin 2021-10-01 21:08:28 +02:00 committed by GitHub
parent 0169fe20e7
commit ebdee4f455
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -133,7 +133,7 @@ fn this_fails() -> Result<()> {
Now to get everything printed nicely, just return a Result<()>
and you're all set!
Note: You can swap out the default reporter for a custom one using `miette::set_reporter()`
Note: You can swap out the default reporter for a custom one using `miette::set_hook()`
*/
fn pretend_this_is_main() -> Result<()> {
// kaboom~
@ -395,7 +395,7 @@ miette::set_hook(Box::new(|_| {
# .unwrap()
```
See the docs for [MietteHandlerOptions] for more details on what you can customize!
See the docs for [MietteHandlerOpts] for more details on what you can customize!
## Acknowledgements