diff --git a/README.md b/README.md index a1baef2..bcfee63 100644 --- a/README.md +++ b/README.md @@ -61,7 +61,7 @@ render .render() .expect("something went wrong rendering the file"); -let result = String::from_utf8(render.into_wirter().into_inner()).expect("invalid utf-8"); +let result = String::from_utf8(render.into_writer().into_inner()).expect("invalid utf-8"); ``` ## License diff --git a/examples/custom_handler.rs b/examples/custom_handler.rs index edeaa23..f0541c5 100644 --- a/examples/custom_handler.rs +++ b/examples/custom_handler.rs @@ -41,7 +41,7 @@ fn main() -> Result<()> { println!( "{}", - String::from_utf8(render.into_wirter().into_inner()).expect("invalid utf-8") + String::from_utf8(render.into_writer().into_inner()).expect("invalid utf-8") ); } diff --git a/src/export/mod.rs b/src/export/mod.rs index 05f5da2..7927b43 100644 --- a/src/export/mod.rs +++ b/src/export/mod.rs @@ -20,7 +20,7 @@ macro_rules! create_render { } #[inline] - pub fn into_wirter(self) -> W { + pub fn into_writer(self) -> W { self.0.writer } @@ -45,7 +45,7 @@ macro_rules! create_render { } } - pub fn into_wirter(self) -> W { + pub fn into_writer(self) -> W { self.writer } diff --git a/src/lib.rs b/src/lib.rs index 900066d..829db65 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -43,7 +43,7 @@ //! .render() //! .expect("something went wrong rendering the file"); //! -//! let result = String::from_utf8(render.into_wirter().into_inner()).expect("invalid utf-8"); +//! let result = String::from_utf8(render.into_writer().into_inner()).expect("invalid utf-8"); //! ``` //! //! or `impl HtmlHandler` to create your own render. The following example @@ -87,7 +87,7 @@ //! .render() //! .expect("something went wrong rendering the file"); //! -//! let result = String::from_utf8(render.into_wirter().into_inner()).expect("invalid utf-8"); +//! let result = String::from_utf8(render.into_writer().into_inner()).expect("invalid utf-8"); //! ``` #[macro_use]