summaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2019-03-30 20:51:09 +0100
committerLaurenz <laurmaedje@gmail.com>2019-03-30 20:58:46 +0100
commit5ca303ecadff190800dd55a5a5ae224dc28a3920 (patch)
treea49504b831981de1041a3f7f0ca44a3892f14ef1 /src/lib.rs
parentadfd7dd0735d8a4efeac634c53bbf386e91a4c41 (diff)
Make things more consistent ♻
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 44c7642e..b9992b42 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -2,13 +2,14 @@
//!
//! # Compilation
//! - **Parsing:** The parsing step first transforms a plain string into an
-//! [iterator of tokens](crate::parsing::Tokens). Then the parser operates on that to construct
-//! a syntax tree. The structures describing the tree can be found in the [`syntax`] module.
+//! [iterator of tokens](crate::parsing::Tokens). Then the [parser](crate::parsing::Parser)
+//! operates on that to construct a syntax tree. The structures describing the tree can be found
+//! in the [syntax] module.
//! - **Typesetting:** The next step is to transform the syntax tree into a portable representation
-//! of the typesetted document. Types for these can be found in the [`doc`] module. This
+//! of the typesetted document. Types for these can be found in the [doc] module. This
//! representation contains already the finished layout.
//! - **Exporting:** The finished document can then be exported into supported formats. Submodules
-//! for the supported formats are located in the [`export`] module. Currently the only supported
+//! for the supported formats are located in the [export] module. Currently the only supported
//! format is _PDF_.
//!
//! # Example
@@ -82,7 +83,7 @@ impl<'p> Compiler<'p> {
Compiler {
context: Context {
style: Style::default(),
- font_providers: Vec::new(),
+ font_providers: vec![],
}
}
}