summaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2021-07-21 11:25:49 +0200
committerLaurenz <laurmaedje@gmail.com>2021-07-21 11:28:33 +0200
commitb0e5212973ce2efcb1433323d67c06eea1a81785 (patch)
tree3b040a4e23d2d99157050d95b67376b2fb866618 /src/lib.rs
parent9488b1b850152eb564dbfefc898c962bdac73eb4 (diff)
Fs builder methods + tidy up
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 90fd8774..594b4a59 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -96,8 +96,8 @@ impl Context {
/// Typeset a source file into a collection of layouted frames.
///
- /// The `file` is the file id of the source file and is used to resolve
- /// relative paths (for importing and image loading).
+ /// The `file` identifies the source file and is used to resolve relative
+ /// paths (for importing and image loading).
///
/// Returns a vector of frames representing individual pages alongside
/// diagnostic information (errors and warnings).
@@ -125,15 +125,14 @@ pub struct ContextBuilder {
}
impl ContextBuilder {
- /// The scope containing definitions that are available everywhere,
+ /// The scope containing definitions that are available everywhere
/// (the standard library).
pub fn std(mut self, std: Scope) -> Self {
self.std = Some(std);
self
}
- /// The `state` defining initial properties for page size, font selection
- /// and so on.
+ /// The initial properties for page size, font selection and so on.
pub fn state(mut self, state: State) -> Self {
self.state = Some(state);
self