summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorinferiorhumanorgans <inferiorhumanorgans@users.noreply.github.com>2024-09-08 01:28:49 -0700
committerGitHub <noreply@github.com>2024-09-08 08:28:49 +0000
commit4cddb485847e01f62cc1fe65d37028a87df52daa (patch)
treef194b02ecdc8dc1d5181420c5717635893cea68e
parenta452fc94bb8dc5d2f4bdb3fe98506f60308487b6 (diff)
Fix a few doc typos. (#4914)
Co-authored-by: Alex Zepeda <srht@inferiorhumanorgans.com>
-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,