diff --git a/src/gtextutils/natsort.h b/src/gtextutils/natsort.h index 8520c0a..5ea09f7 100644 --- a/src/gtextutils/natsort.h +++ b/src/gtextutils/natsort.h @@ -31,7 +31,7 @@ * and I prefer not to use it for now. * * Note 2: - * As of FSF GNU Coreutils version 7.1, the 'sort' progarm as a similar sorting order + * As of FSF GNU Coreutils version 7.1, the 'sort' program as a similar sorting order * called 'version' (with the -V command argument). * Coreutils's implementation is found in /src/filevercmp.{ch}. * The results are similar to Matrin Poo's NatSort, but not identical diff --git a/src/gtextutils/tuple_parser.h b/src/gtextutils/tuple_parser.h index 06249a0..1b6831b 100644 --- a/src/gtextutils/tuple_parser.h +++ b/src/gtextutils/tuple_parser.h @@ -14,7 +14,7 @@ //#define TUPLE_PARSER_DEBUG /* - The maximun valid number for a column. + The maximum valid number for a column. The value is used in a bitset to prevent duplicated columns. */ #ifndef TUPLE_PARSER_MAX_COLUMN_NUMBER @@ -257,7 +257,7 @@ class _Tuple_Parser_impl<_Idx> Users should use a Tuple_Parser<> instead of _Tuple_Parser_impl<>. - Usage exmaple: + Usage example: //Define a parser that extracts three fields from an input stream: //an int, a string and a double. diff --git a/tests/test_tuple_parser.cpp b/tests/test_tuple_parser.cpp index 3d0525c..b37a3a7 100644 --- a/tests/test_tuple_parser.cpp +++ b/tests/test_tuple_parser.cpp @@ -111,7 +111,7 @@ void test_parser_parsing_error() //We should not get here ASSERT ( ! "Invalid input not detected." ) ; } catch ( tuple_parser_parsing_error &ex ) { - //exception was thrown. valid reported errornous columns + //exception was thrown. valid reported erroneous columns ASSERT ( ex.column() == 4 ) ; } } @@ -139,7 +139,7 @@ void test_parser_premature_eol() //We should not get here ASSERT ( ! "premature-end-of-line not detected." ) ; } catch ( tuple_parser_premature_end_of_line &ex ) { - //exception was thrown. valid reported errornous columns + //exception was thrown. valid reported erroneous columns ASSERT ( ex.expected_columns() == 4 ) ; ASSERT ( ex.actual_columns() == 2 ) ;