From 335fa2d118718b4dba539294a8ef6c96c5bbf09e Mon Sep 17 00:00:00 2001 From: Laurenz Date: Sun, 4 Oct 2020 23:31:35 +0200 Subject: =?UTF-8?q?Small=20improvements=20=F0=9F=8D=AA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/export/pdf.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/export') diff --git a/src/export/pdf.rs b/src/export/pdf.rs index fb1b3e3b..ccbc01f1 100644 --- a/src/export/pdf.rs +++ b/src/export/pdf.rs @@ -26,11 +26,11 @@ use crate::length::Length; /// The raw _PDF_ is written into the `target` writable, returning the number of /// bytes written. pub fn export( - layout: &[BoxLayout], + layouts: &[BoxLayout], loader: &FontLoader, target: W, ) -> io::Result { - PdfExporter::new(layout, loader, target)?.write() + PdfExporter::new(layouts, loader, target)?.write() } struct PdfExporter<'a, W: Write> { @@ -42,7 +42,7 @@ struct PdfExporter<'a, W: Write> { /// tree and so on. These offsets are computed in the beginning and stored /// here. offsets: Offsets, - // Font remapping, see below at `remap_fonts`. + // Font remapping, for more information see `remap_fonts`. to_pdf: HashMap, to_layout: Vec, } -- cgit v1.2.3