+
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions examples/string_arbitrary/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ fn main() {
should_respect_not_empty_validation_with_trim();
should_respect_not_empty_validation_without_trim();
should_respect_len_char_max();
should_respec_both_len_boundaries();
should_respect_both_len_boundaries();
}

fn should_generate_arbitrary_string_without_validation_with_respect_to_sanitizers() {
Expand Down Expand Up @@ -68,7 +68,7 @@ fn should_respect_len_char_max() {
});
}

fn should_respec_both_len_boundaries() {
fn should_respect_both_len_boundaries() {
#[nutype(validate(len_char_min = 3, len_char_max = 5), derive(Arbitrary, Debug))]
struct Text(String);

Expand Down
2 changes: 1 addition & 1 deletion nutype_macros/src/common/models.rs
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ pub trait TypeTrait {
fn is_from_str(&self) -> bool;
}

/// The flag the indicates that a newtype will be generated with extra constructor,
/// The flag that indicates that a newtype will be generated with extra constructor,
/// `::new_unchecked()` constructor which allows to avoid the guards.
/// Generally, usage of `new_unchecked` is discouraged.
#[derive(Debug, Default)]
Expand Down
2 changes: 1 addition & 1 deletion nutype_macros/src/common/parse/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ where
let extra_attr: ExtraValidateAttr = input.parse()?;
Ok(ValidateAttr::Extra(extra_attr))
} else {
// HACK: we want to prapagate the original error in case if it was `regex` attribute.
// HACK: we want to propagate the original error in case if it was `regex` attribute.
// Most likely it was not parsed, because `regex` feature was not enabled.
if let Ok(ident) = input.fork().parse::<Ident>() {
if ident == "regex" {
Expand Down
2 changes: 1 addition & 1 deletion test_suite/tests/float.rs
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ mod traits {
}

#[test]
fn test_with_validaiton() {
fn test_with_validation() {
#[nutype(
validate(less_or_equal = 100.0),
derive(Debug, TryFrom, FromStr, Borrow, Clone, Copy)
Expand Down
2 changes: 1 addition & 1 deletion test_suite/tests/integer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -553,7 +553,7 @@ mod traits {
}

#[test]
fn test_with_validaiton() {
fn test_with_validation() {
#[nutype(
validate(less_or_equal = 1000),
derive(Debug, TryFrom, FromStr, Borrow, Clone, Copy)
Expand Down
2 changes: 1 addition & 1 deletion test_suite/tests/string.rs
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ mod derives {
}

#[test]
fn test_with_validaiton() {
fn test_with_validation() {
#[nutype(
validate(not_empty),
derive(Debug, Hash, TryFrom, FromStr, Borrow, Clone)
Expand Down
Loading
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载