diff --git a/crates/typst-macros/src/util.rs b/crates/typst-macros/src/util.rs index b6acc7d81..4d8255e03 100644 --- a/crates/typst-macros/src/util.rs +++ b/crates/typst-macros/src/util.rs @@ -163,7 +163,7 @@ pub fn determine_name_and_title( let trim = trim.unwrap_or(|s| s); let default = trim(&ident.to_string()).to_kebab_case(); if specified_name.as_ref() == Some(&default) { - bail!(ident, "name was specified unncessarily"); + bail!(ident, "name was specified unnecessarily"); } specified_name.unwrap_or(default) }; @@ -171,7 +171,7 @@ pub fn determine_name_and_title( let title = { let default = name.to_title_case(); if specified_title.as_ref() == Some(&default) { - bail!(ident, "title was specified unncessarily"); + bail!(ident, "title was specified unnecessarily"); } specified_title.unwrap_or(default) }; diff --git a/crates/typst/src/layout/flow.rs b/crates/typst/src/layout/flow.rs index f8034bff3..7fac5fb69 100644 --- a/crates/typst/src/layout/flow.rs +++ b/crates/typst/src/layout/flow.rs @@ -40,7 +40,7 @@ use crate::World; enum PageItem<'a> { /// A page run containing content. All runs will be layouted in parallel. Run(&'a [Pair<'a>], StyleChain<'a>, Locator<'a>), - /// Tags in between pages. These will be preprended to the first start of + /// Tags in between pages. These will be prepended to the first start of /// the next page, or appended at the very end of the final page if there is /// no next page. Tags(&'a [Pair<'a>]), diff --git a/crates/typst/src/realize.rs b/crates/typst/src/realize.rs index 9ebdd87a1..9ac057ea2 100644 --- a/crates/typst/src/realize.rs +++ b/crates/typst/src/realize.rs @@ -867,7 +867,7 @@ const fn list_like_grouping() -> GroupingRule { /// Processes grouped textual elements. /// -/// Specificaly, it searches for regex matches in grouped textual elements and +/// Specifically, it searches for regex matches in grouped textual elements and /// - if there was a match, visits the results recursively, /// - if there was no match, tries to simply implicitly use the grouped elements /// as part of a paragraph grouping,