Fix a few doc typos. (#4914)

Co-authored-by: Alex Zepeda <srht@inferiorhumanorgans.com>
This commit is contained in:
inferiorhumanorgans 2024-09-08 01:28:49 -07:00 committed by GitHub
parent a452fc94bb
commit 4cddb48584
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 4 additions and 4 deletions

View File

@ -163,7 +163,7 @@ pub fn determine_name_and_title(
let trim = trim.unwrap_or(|s| s); let trim = trim.unwrap_or(|s| s);
let default = trim(&ident.to_string()).to_kebab_case(); let default = trim(&ident.to_string()).to_kebab_case();
if specified_name.as_ref() == Some(&default) { if specified_name.as_ref() == Some(&default) {
bail!(ident, "name was specified unncessarily"); bail!(ident, "name was specified unnecessarily");
} }
specified_name.unwrap_or(default) specified_name.unwrap_or(default)
}; };
@ -171,7 +171,7 @@ pub fn determine_name_and_title(
let title = { let title = {
let default = name.to_title_case(); let default = name.to_title_case();
if specified_title.as_ref() == Some(&default) { if specified_title.as_ref() == Some(&default) {
bail!(ident, "title was specified unncessarily"); bail!(ident, "title was specified unnecessarily");
} }
specified_title.unwrap_or(default) specified_title.unwrap_or(default)
}; };

View File

@ -40,7 +40,7 @@ use crate::World;
enum PageItem<'a> { enum PageItem<'a> {
/// A page run containing content. All runs will be layouted in parallel. /// A page run containing content. All runs will be layouted in parallel.
Run(&'a [Pair<'a>], StyleChain<'a>, Locator<'a>), 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 /// the next page, or appended at the very end of the final page if there is
/// no next page. /// no next page.
Tags(&'a [Pair<'a>]), Tags(&'a [Pair<'a>]),

View File

@ -867,7 +867,7 @@ const fn list_like_grouping<T: ListLike>() -> GroupingRule {
/// Processes grouped textual elements. /// 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 a match, visits the results recursively,
/// - if there was no match, tries to simply implicitly use the grouped elements /// - if there was no match, tries to simply implicitly use the grouped elements
/// as part of a paragraph grouping, /// as part of a paragraph grouping,