Skip to content

Commit ec9f7d0

Browse files
authored
Merge pull request #212 from Kamil729/typos
Fix some typos
2 parents bac9648 + 9a7fc19 commit ec9f7d0

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

examples/string_arbitrary/src/main.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ fn main() {
88
should_respect_not_empty_validation_with_trim();
99
should_respect_not_empty_validation_without_trim();
1010
should_respect_len_char_max();
11-
should_respec_both_len_boundaries();
11+
should_respect_both_len_boundaries();
1212
}
1313

1414
fn should_generate_arbitrary_string_without_validation_with_respect_to_sanitizers() {
@@ -68,7 +68,7 @@ fn should_respect_len_char_max() {
6868
});
6969
}
7070

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

nutype_macros/src/common/models.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ pub trait TypeTrait {
377377
fn is_from_str(&self) -> bool;
378378
}
379379

380-
/// The flag the indicates that a newtype will be generated with extra constructor,
380+
/// The flag that indicates that a newtype will be generated with extra constructor,
381381
/// `::new_unchecked()` constructor which allows to avoid the guards.
382382
/// Generally, usage of `new_unchecked` is discouraged.
383383
#[derive(Debug, Default)]

nutype_macros/src/common/parse/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ where
125125
let extra_attr: ExtraValidateAttr = input.parse()?;
126126
Ok(ValidateAttr::Extra(extra_attr))
127127
} else {
128-
// HACK: we want to prapagate the original error in case if it was `regex` attribute.
128+
// HACK: we want to propagate the original error in case if it was `regex` attribute.
129129
// Most likely it was not parsed, because `regex` feature was not enabled.
130130
if let Ok(ident) = input.fork().parse::<Ident>() {
131131
if ident == "regex" {

test_suite/tests/float.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ mod traits {
378378
}
379379

380380
#[test]
381-
fn test_with_validaiton() {
381+
fn test_with_validation() {
382382
#[nutype(
383383
validate(less_or_equal = 100.0),
384384
derive(Debug, TryFrom, FromStr, Borrow, Clone, Copy)

test_suite/tests/integer.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,7 @@ mod traits {
553553
}
554554

555555
#[test]
556-
fn test_with_validaiton() {
556+
fn test_with_validation() {
557557
#[nutype(
558558
validate(less_or_equal = 1000),
559559
derive(Debug, TryFrom, FromStr, Borrow, Clone, Copy)

test_suite/tests/string.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ mod derives {
322322
}
323323

324324
#[test]
325-
fn test_with_validaiton() {
325+
fn test_with_validation() {
326326
#[nutype(
327327
validate(not_empty),
328328
derive(Debug, Hash, TryFrom, FromStr, Borrow, Clone)

0 commit comments

Comments
 (0)