Skip to content

Commit

Permalink
Fix typos (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
kianmeng committed Feb 20, 2024
1 parent 25ec498 commit a4ed7ae
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/json.rs
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ pub struct CitationItem {
pub locator: Option<String>,
/// What kind of locator to use (e.g. `"page"`).
pub label: Option<String>,
/// Whether to supress the author for this item.
/// Whether to suppress the author for this item.
#[serde(default)]
pub suppress_author: bool,
/// Something to print before this item.
Expand Down
10 changes: 5 additions & 5 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -622,7 +622,7 @@ pub enum StyleClass {
pub enum PageRangeFormat {
/// “321–28”
/// Aliases: `chicago` until CSL 1.1
// Rename needed because the number is not used as word boundry by heck.
// Rename needed because the number is not used as word boundary by heck.
#[serde(alias = "chicago")]
#[serde(rename = "chicago-15")]
Chicago15,
Expand Down Expand Up @@ -1217,7 +1217,7 @@ pub enum SubsequentAuthorSubstituteRule {
CompleteAll,
/// When all names match, replace each name.
CompleteEach,
/// Each maching name is replaced.
/// Each matching name is replaced.
PartialEach,
/// Only the first matching name is replaced.
PartialFirst,
Expand Down Expand Up @@ -2122,7 +2122,7 @@ impl Names {
}

/// Convert a [`Names`] within a substitute to a name using the parent element.
pub fn from_names_substitue(&self, child: &Self) -> Names {
pub fn from_names_substitute(&self, child: &Self) -> Names {
if child.name().is_some()
|| child.et_al().is_some()
|| child.substitute().is_some()
Expand Down Expand Up @@ -2453,7 +2453,7 @@ impl NameOptions<'_> {
return false;
}

// If this is a subsequnt citation of the same item, use other CSL options
// If this is a subsequent citation of the same item, use other CSL options
let (et_al_min, et_al_use_first) = if is_subsequent {
(self.et_al_subsequent_min, self.et_al_subsequent_use_first)
} else {
Expand Down Expand Up @@ -2485,7 +2485,7 @@ pub enum DelimiterBehavior {
/// (`-precedes-last`) names.
#[default]
Contextual,
/// Only use if the preceeding name is inverted (per `name-as-sort-order`).
/// Only use if the preceding name is inverted (per `name-as-sort-order`).
AfterInvertedName,
/// Always use the delimiter for this condition.
Always,
Expand Down
2 changes: 1 addition & 1 deletion src/taxonomy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ pub enum StandardVariable {
CallNumber,
/// Identifier of the item in the input data file (analogous to BibTeX
/// entrykey); Use this variable to facilitate conversion between
/// word-processor and plain-text writing systems; For an identifer intended
/// word-processor and plain-text writing systems; For an identifier intended
/// as formatted output label for a citation (e.g. “Ferr78”), use
/// citation-label instead.
CitationKey,
Expand Down
2 changes: 1 addition & 1 deletion tests/independent/chicago-fullnote-bibliography.csl
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@
</names>
</if>
</choose>
<!--This includes page numers after the container author, e.g. for Introductions -->
<!--This includes page numbers after the container author, e.g. for Introductions -->
<choose>
<if variable="container-author author" match="all">
<group delimiter=". ">
Expand Down

0 comments on commit a4ed7ae

Please sign in to comment.