diff options
| author | Laurenz <laurmaedje@gmail.com> | 2021-07-21 11:25:49 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2021-07-21 11:28:33 +0200 |
| commit | b0e5212973ce2efcb1433323d67c06eea1a81785 (patch) | |
| tree | 3b040a4e23d2d99157050d95b67376b2fb866618 /src/lib.rs | |
| parent | 9488b1b850152eb564dbfefc898c962bdac73eb4 (diff) | |
Fs builder methods + tidy up
Diffstat (limited to 'src/lib.rs')
| -rw-r--r-- | src/lib.rs | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -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 |
