summaryrefslogtreecommitdiff
path: root/library/src
diff options
context:
space:
mode:
Diffstat (limited to 'library/src')
-rw-r--r--library/src/compute/data.rs2
-rw-r--r--library/src/meta/figure.rs2
-rw-r--r--library/src/meta/outline.rs2
3 files changed, 3 insertions, 3 deletions
diff --git a/library/src/compute/data.rs b/library/src/compute/data.rs
index 3b30efac..8dba62f5 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<Str> {
diff --git a/library/src/meta/figure.rs b/library/src/meta/figure.rs
index a838b9a5..42b32c9d 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 099c3bdf..f65168c7 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.