diff --git a/cli/src/main.rs b/cli/src/main.rs index 837581902..7ecf34612 100644 --- a/cli/src/main.rs +++ b/cli/src/main.rs @@ -317,7 +317,7 @@ fn export(document: &Document, command: &CompileSettings) -> StrResult<()> { Err("cannot export multiple PNGs without `{n}` in output path")?; } - // Find a number width that accomodates all pages. For instance, the + // Find a number width that accommodates all pages. For instance, the // first page should be numbered "001" if there are between 100 and // 999 pages. let width = 1 + document.pages.len().checked_ilog10().unwrap_or(0) as usize; diff --git a/library/src/layout/flow.rs b/library/src/layout/flow.rs index 402136038..fdce7c0bc 100644 --- a/library/src/layout/flow.rs +++ b/library/src/layout/flow.rs @@ -122,7 +122,7 @@ enum FlowItem { /// Fractional spacing between other items. Fractional(Fr), /// A frame for a layouted block, how to align it, whether it sticks to the - /// item after it (for orphan preventation), and whether it is movable + /// item after it (for orphan prevention), and whether it is movable /// (to keep it together with its footnotes). Frame { frame: Frame, aligns: Axes, sticky: bool, movable: bool }, /// An absolutely placed frame. diff --git a/library/src/layout/par.rs b/library/src/layout/par.rs index 79b368138..fa53f0317 100644 --- a/library/src/layout/par.rs +++ b/library/src/layout/par.rs @@ -1013,7 +1013,7 @@ fn linebreak_optimized<'a>(vt: &Vt, p: &'a Preparation<'a>, width: Abs) -> Vec n * 2em}` would be equivalent to just specifiying `{2em}`, + /// `{n => n * 2em}` would be equivalent to just specifying `{2em}`, /// while `{n => [→ ] * n}` would indent with one arrow per nesting /// level. /// diff --git a/library/src/meta/reference.rs b/library/src/meta/reference.rs index 42450b976..1d8bd1183 100644 --- a/library/src/meta/reference.rs +++ b/library/src/meta/reference.rs @@ -254,7 +254,7 @@ cast! { /// Marks an element as being able to be referenced. This is used to implement /// the `@ref` element. pub trait Refable { - /// The supplement, if not overriden by the reference. + /// The supplement, if not overridden by the reference. fn supplement(&self) -> Content; /// Returns the counter of this element. diff --git a/src/export/pdf/font.rs b/src/export/pdf/font.rs index 1e2f9c93b..c61425995 100644 --- a/src/export/pdf/font.rs +++ b/src/export/pdf/font.rs @@ -168,7 +168,7 @@ fn create_cmap( // prefer them over pre-existing text mappings from the document. Only // things that don't have a corresponding codepoint (or only a private-use // one) like the "Th" in Linux Libertine get the text of their first - // occurances in the document instead. + // occurrences in the document instead. for subtable in ttf.tables().cmap.into_iter().flat_map(|table| table.subtables) { if !subtable.is_unicode() { continue;