From b0e5212973ce2efcb1433323d67c06eea1a81785 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Wed, 21 Jul 2021 11:25:49 +0200 Subject: Fs builder methods + tidy up --- src/lib.rs | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src/lib.rs') 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 -- cgit v1.2.3