mirror of https://github.com/zkat/miette.git
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:
parent
0169fe20e7
commit
ebdee4f455
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue