From ebdee4f4551c3135b04bf81e24553cbed1639855 Mon Sep 17 00:00:00 2001 From: Coenen Benjamin Date: Fri, 1 Oct 2021 21:08:28 +0200 Subject: [PATCH] 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> --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 5eab54f..4d19c5c 100644 --- a/README.md +++ b/README.md @@ -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