summaryrefslogtreecommitdiff
path: root/src/export
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2020-11-24 16:12:41 +0100
committerLaurenz <laurmaedje@gmail.com>2020-11-24 16:12:41 +0100
commit761931405c68efe0a35d96524df797dda7155723 (patch)
tree31ac2153dc0e5a5dc4fb4f46f839caed8066542a /src/export
parentf105663037c44740b5aa02dea72a9b368bc003e0 (diff)
Use newly stabilized intra doc links ↩
Diffstat (limited to 'src/export')
-rw-r--r--src/export/pdf.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/export/pdf.rs b/src/export/pdf.rs
index cb05dee0..c5d8d871 100644
--- a/src/export/pdf.rs
+++ b/src/export/pdf.rs
@@ -18,8 +18,7 @@ use crate::layout::{BoxLayout, LayoutElement};
/// pass in the font loader used for typesetting such that the fonts can be
/// included in the _PDF_.
///
-/// The raw _PDF_ is written into the `target` writable, returning the number of
-/// bytes written.
+/// Returns the raw bytes making up the _PDF_ document.
pub fn export(layouts: &[BoxLayout], loader: &FontLoader) -> Vec<u8> {
PdfExporter::new(layouts, loader).write()
}