summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--crates/typst-macros/src/util.rs4
-rw-r--r--crates/typst/src/layout/flow.rs2
-rw-r--r--crates/typst/src/realize.rs2
3 files changed, 4 insertions, 4 deletions
diff --git a/crates/typst-macros/src/util.rs b/crates/typst-macros/src/util.rs
index b6acc7d8..4d8255e0 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 f8034bff..7fac5fb6 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 9ebdd87a..9ac057ea 100644
--- a/crates/typst/src/realize.rs
+++ b/crates/typst/src/realize.rs
@@ -867,7 +867,7 @@ const fn list_like_grouping<T: ListLike>() -> 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,