summaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2019-03-14 15:35:01 +0100
committerLaurenz <laurmaedje@gmail.com>2019-03-14 15:35:01 +0100
commitaae8a3a77e7c963767b5bd94148d06d86d9b24dd (patch)
tree76132b9ea6daffcf737ec62b53ce275536a572cd /src/lib.rs
parent9b3386f8a3c023be7f948c484f3b60208b9869d0 (diff)
Unified font error type 🔗
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib.rs b/src/lib.rs
index dcd76a26..29daa853 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -15,10 +15,10 @@
//!
//! // Create a compiler and export a PDF.
//! let src = "Hello World from Typeset!";
-//! let compiler = Compiler::new(src);
+//! let compiler = Compiler::new();
//!
//! // Write the document into a file as a PDF.
-//! compiler.write_pdf(&mut file).unwrap();
+//! compiler.write_pdf(src, &mut file).unwrap();
//! ```
pub mod syntax;