From 0032f2c4a0ea348a6d3512e50ce510d805c281c1 Mon Sep 17 00:00:00 2001 From: Hanif Bin Ariffin Date: Sun, 1 Aug 2021 21:01:01 +0800 Subject: [PATCH] Fixed some spelling issues Signed-off-by: Hanif Bin Ariffin --- src/uu/tr/src/convert.rs | 2 ++ src/uu/tr/src/operation.rs | 6 ++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/uu/tr/src/convert.rs b/src/uu/tr/src/convert.rs index d1e925c2b..27f31491f 100644 --- a/src/uu/tr/src/convert.rs +++ b/src/uu/tr/src/convert.rs @@ -1,3 +1,5 @@ +// spell-checker:ignore (strings) anychar combinator + use nom::{ branch::alt, bytes::complete::tag, diff --git a/src/uu/tr/src/operation.rs b/src/uu/tr/src/operation.rs index 9c6ca6b4a..73ec27c14 100644 --- a/src/uu/tr/src/operation.rs +++ b/src/uu/tr/src/operation.rs @@ -1,3 +1,5 @@ +// spell-checker:ignore (strings) anychar combinator Alnum Punct Xdigit alnum punct xdigit cntrl + use nom::{ branch::alt, bytes::complete::tag, @@ -234,7 +236,7 @@ impl Sequence { alt(( Sequence::error_parse_char_repeat, Sequence::error_parse_empty_bracket, - Sequence::error_parse_empty_equivalant_char, + Sequence::error_parse_empty_equivalent_char, )), // NOTE: This must be the last one map(Sequence::parse_backslash_or_char, |s| Ok(Sequence::Char(s))), @@ -379,7 +381,7 @@ impl Sequence { tag("[::]")(input).map(|(l, _)| (l, Err(BadSequence::MissingCharClassName))) } - fn error_parse_empty_equivalant_char( + fn error_parse_empty_equivalent_char( input: &str, ) -> IResult<&str, Result> { tag("[==]")(input).map(|(l, _)| (l, Err(BadSequence::MissingEquivalentClassChar)))