From d4103d582b3124ea475d5b010b1bd72e65b3ebda Mon Sep 17 00:00:00 2001 From: ridiculousfish Date: Sat, 29 Feb 2020 15:56:52 -0800 Subject: [PATCH] Correct the speeling of sentinel --- src/common.cpp | 4 ++-- src/common.h | 2 +- src/expand.h | 2 +- src/wildcard.h | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/common.cpp b/src/common.cpp index 90b13a632..305b85a31 100644 --- a/src/common.cpp +++ b/src/common.cpp @@ -1230,11 +1230,11 @@ wcstring debug_escape(const wcstring &in) { TEST(BRACE_SPACE) TEST(INTERNAL_SEPARATOR) TEST(VARIABLE_EXPAND_EMPTY) - TEST(EXPAND_SENTINAL) + TEST(EXPAND_SENTINEL) TEST(ANY_CHAR) TEST(ANY_STRING) TEST(ANY_STRING_RECURSIVE) - TEST(ANY_SENTINAL) + TEST(ANY_SENTINEL) default: append_format(result, L"<\\x%02x>", c); break; diff --git a/src/common.h b/src/common.h index a3fc728c6..471946b6b 100644 --- a/src/common.h +++ b/src/common.h @@ -736,7 +736,7 @@ struct enum_map { 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 /// elements in the map. template diff --git a/src/expand.h b/src/expand.h index c4cf99a04..423b0559c 100644 --- a/src/expand.h +++ b/src/expand.h @@ -96,7 +96,7 @@ enum : wchar_t { VARIABLE_EXPAND_EMPTY, /// 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. - EXPAND_SENTINAL + EXPAND_SENTINEL }; /// These are the possible return values for expand_string. diff --git a/src/wildcard.h b/src/wildcard.h index eb95cd4d4..dc087afda 100644 --- a/src/wildcard.h +++ b/src/wildcard.h @@ -19,7 +19,7 @@ enum { ANY_STRING_RECURSIVE, /// 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. - ANY_SENTINAL + ANY_SENTINEL }; /// Expand the wildcard by matching against the filesystem.