summaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 2fa1f6c3..a22061a6 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -5,16 +5,16 @@
//! # Example
//! This is an example of compiling a really simple document into _PDF_.
//! ```
-//! use typeset::{parsing::ParseTree, doc::Generate, export::WritePdf};
+//! use typeset::{parsing::ParseTree, doc::Generate, write::WritePdf};
//!
//! // Create an output file.
//! # /*
//! let mut file = std::fs::File::create("hello-typeset.pdf").unwrap();
//! # */
-//! # let mut file = std::fs::File::create("../target/hello-typeset.pdf").unwrap();
+//! # let mut file = std::fs::File::create("../target/typeset-hello.pdf").unwrap();
//!
//! // Parse the source and then generate the document.
-//! let src = "Hello World from Typeset!";
+//! let src = "Hello World from Typeset‼";
//! let doc = src.parse_tree().unwrap().generate().unwrap();
//!
//! // Write the document into file as PDF.
@@ -27,6 +27,6 @@ pub mod parsing;
pub mod doc;
/// Writing of documents into supported formats.
-pub mod export {
- pub use crate::pdf::WritePdf;
+pub mod write {
+ pub use crate::pdf::{WritePdf, PdfWritingError};
}