From e4fda4176ec477c3508549e165c12406f939e8f6 Mon Sep 17 00:00:00 2001 From: Alexander Seiler Date: Wed, 12 Apr 2023 15:13:36 +0200 Subject: [PATCH] Correct some typos (#746) --- library/src/compute/data.rs | 2 +- library/src/meta/figure.rs | 2 +- library/src/meta/outline.rs | 2 +- src/export/render.rs | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/library/src/compute/data.rs b/library/src/compute/data.rs index 3b30efacf..8dba62f54 100644 --- a/library/src/compute/data.rs +++ b/library/src/compute/data.rs @@ -281,7 +281,7 @@ fn convert_yaml(value: serde_yaml::Value) -> Value { } } -/// Converts an arbitary YAML mapping key into a Typst Dict Key. +/// Converts an arbitrary YAML mapping key into a Typst Dict Key. /// Currently it only does so for strings, everything else /// returns None fn convert_yaml_key(key: serde_yaml::Value) -> Option { diff --git a/library/src/meta/figure.rs b/library/src/meta/figure.rs index a838b9a56..42b32c9d0 100644 --- a/library/src/meta/figure.rs +++ b/library/src/meta/figure.rs @@ -42,7 +42,7 @@ use crate::visualize::ImageElem; /// ) /// ``` /// -/// This behaviour can be overridden by explictly specifying the figure's +/// This behaviour can be overridden by explicitly specifying the figure's /// `kind`. All figures of the same kind share a common counter. /// /// ## Modifying the appearance diff --git a/library/src/meta/outline.rs b/library/src/meta/outline.rs index 099c3bdf7..f65168c7f 100644 --- a/library/src/meta/outline.rs +++ b/library/src/meta/outline.rs @@ -9,7 +9,7 @@ use crate::text::{LinebreakElem, SpaceElem, TextElem}; /// A table of contents, figures, or other elements. /// -/// This function generates a list of all occurances of an element in the +/// This function generates a list of all occurrences of an element in the /// document, up to a given depth. The element's numbering and page number will /// be displayed in the outline alongside its title or caption. By default this /// generates a table of contents. diff --git a/src/export/render.rs b/src/export/render.rs index 18d8a74b1..8cee3aa65 100644 --- a/src/export/render.rs +++ b/src/export/render.rs @@ -297,7 +297,7 @@ fn render_outline_glyph( let c = color.to_rgba(); // Pad the pixmap with 1 pixel in each dimension so that we do - // not get any problem with floating point errors along ther border + // not get any problem with floating point errors along their border let mut pixmap = sk::Pixmap::new(mw + 2, mh + 2)?; for x in 0..mw { for y in 0..mh {