diff --git a/examples/extract_txt_with_page.rs b/examples/extract_txt_with_page.rs index 4d181d7..ede1b86 100644 --- a/examples/extract_txt_with_page.rs +++ b/examples/extract_txt_with_page.rs @@ -16,22 +16,22 @@ fn main() { } struct PagePlainTextOutput { - inner: PlainTextOutput, + inner: PlainTextOutput, pages: HashMap, current_page: u32, reader: Rc>, } -struct OutputWarpper(Rc>); +struct OutputWrapper(Rc>); -impl std::fmt::Write for OutputWarpper { +impl std::fmt::Write for OutputWrapper { fn write_str(&mut self, s: &str) -> std::fmt::Result { self.0.borrow_mut().write_str(s).map_err(|_| fmt::Error) } } -impl ConvertToFmt for OutputWarpper { - type Writer = OutputWarpper; +impl ConvertToFmt for OutputWrapper { + type Writer = OutputWrapper; fn convert(self) -> Self::Writer { self @@ -46,7 +46,7 @@ impl PagePlainTextOutput { pages: HashMap::new(), current_page: 0, reader: s, - inner: PlainTextOutput::new(OutputWarpper(writer)), + inner: PlainTextOutput::new(OutputWrapper(writer)), } } }