Skip to content

Commit

Permalink
chore: correct several typos
Browse files Browse the repository at this point in the history
Correct some spelling mistakes and configure the `typos` tool for a few
false-positives.
  • Loading branch information
dnaka91 committed Oct 29, 2023
1 parent 137d2cd commit c74b3a7
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/stef-compiler/src/generics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ pub struct UnusedGeneric {
pub definition: Range<usize>,
}

/// Ensure all generics in a struct are unqiue and used.
/// Ensure all generics in a struct are unique and used.
pub fn validate_struct_generics(value: &Struct<'_>) -> Result<(), InvalidGenericType> {
validate_duplicate_generics(&value.generics)?;

Expand All @@ -56,7 +56,7 @@ pub fn validate_struct_generics(value: &Struct<'_>) -> Result<(), InvalidGeneric
})
}

/// Ensure all generics in an enum are unqiue and used.
/// Ensure all generics in an enum are unique and used.
pub fn validate_enum_generics(value: &Enum<'_>) -> Result<(), InvalidGenericType> {
validate_duplicate_generics(&value.generics)?;

Expand Down
12 changes: 12 additions & 0 deletions typos.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[default.extend-identifiers]
froms = "froms"
relateds = "relateds"
vALUE = "vALUE"

[type.cargo-insta]
extend-glob = ["*.snap", "*.snap.new"]
check-file = false

[type.changelog]
extend-glob = ["CHANGELOG.md"]
check-file = false

0 comments on commit c74b3a7

Please sign in to comment.