2
0
Fork 0
mirror of https://github.com/fish-shell/fish-shell synced 2025-01-16 06:54:03 +00:00

Correct the speeling of sentinel

This commit is contained in:
ridiculousfish 2020-02-29 15:56:52 -08:00
parent c5fa580948
commit d4103d582b
4 changed files with 5 additions and 5 deletions

View file

@ -1230,11 +1230,11 @@ wcstring debug_escape(const wcstring &in) {
TEST(BRACE_SPACE) TEST(BRACE_SPACE)
TEST(INTERNAL_SEPARATOR) TEST(INTERNAL_SEPARATOR)
TEST(VARIABLE_EXPAND_EMPTY) TEST(VARIABLE_EXPAND_EMPTY)
TEST(EXPAND_SENTINAL) TEST(EXPAND_SENTINEL)
TEST(ANY_CHAR) TEST(ANY_CHAR)
TEST(ANY_STRING) TEST(ANY_STRING)
TEST(ANY_STRING_RECURSIVE) TEST(ANY_STRING_RECURSIVE)
TEST(ANY_SENTINAL) TEST(ANY_SENTINEL)
default: default:
append_format(result, L"<\\x%02x>", c); append_format(result, L"<\\x%02x>", c);
break; break;

View file

@ -736,7 +736,7 @@ struct enum_map {
const wchar_t *const str; const wchar_t *const str;
}; };
/// Given a string return the matching enum. Return the sentinal enum if no match is made. The map /// Given a string return the matching enum. Return the sentinel enum if no match is made. The map
/// must be sorted by the `str` member. A binary search is twice as fast as a linear search with 16 /// must be sorted by the `str` member. A binary search is twice as fast as a linear search with 16
/// elements in the map. /// elements in the map.
template <typename T> template <typename T>

View file

@ -96,7 +96,7 @@ enum : wchar_t {
VARIABLE_EXPAND_EMPTY, VARIABLE_EXPAND_EMPTY,
/// This is a special pseudo-char that is not used other than to mark the end of the the special /// This is a special pseudo-char that is not used other than to mark the end of the the special
/// characters so we can sanity check the enum range. /// characters so we can sanity check the enum range.
EXPAND_SENTINAL EXPAND_SENTINEL
}; };
/// These are the possible return values for expand_string. /// These are the possible return values for expand_string.

View file

@ -19,7 +19,7 @@ enum {
ANY_STRING_RECURSIVE, ANY_STRING_RECURSIVE,
/// This is a special pseudo-char that is not used other than to mark the /// This is a special pseudo-char that is not used other than to mark the
/// end of the the special characters so we can sanity check the enum range. /// end of the the special characters so we can sanity check the enum range.
ANY_SENTINAL ANY_SENTINEL
}; };
/// Expand the wildcard by matching against the filesystem. /// Expand the wildcard by matching against the filesystem.