diff options
author | FabianWolff <fabi.wolff@arcor.de> | 2020-09-01 05:20:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-31 20:20:57 -0700 |
commit | fa05eb5599e2ac0b2d4c1e0e943fee6353b52430 (patch) | |
tree | f3c9cbb78e7e80657e0a0ebcd5f438842d05a854 /src/util/string.cpp | |
parent | 09b3b246ad0328a163b0e3825531ccf82ea4013d (diff) |
Fix spelling errors (#4977)
Signed-off-by: Fabian Wolff <fabi.wolff@arcor.de>
Diffstat (limited to 'src/util/string.cpp')
-rw-r--r-- | src/util/string.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/util/string.cpp b/src/util/string.cpp index 44c4d3e4b..a1a40df8a 100644 --- a/src/util/string.cpp +++ b/src/util/string.cpp @@ -131,7 +131,7 @@ std::vector<unsigned> String::toInternal(const std::string& s, ++i; // are we an escape sequence? bool isEscapeSequence = true; - // the string corresponding to the hexidecimal code point + // the string corresponding to the hexadecimal code point std::stringstream hexString; // is the slash followed by a 'u'? Could be last character. if (i >= s.size() || s[i] != 'u') @@ -195,7 +195,7 @@ std::vector<unsigned> String::toInternal(const std::string& s, } if (!isEnd) { - // if we were interupted before ending, then this is not a valid + // if we were interrupted before ending, then this is not a valid // escape sequence isEscapeSequence = false; } @@ -210,7 +210,7 @@ std::vector<unsigned> String::toInternal(const std::string& s, if (val > num_codes()) { // Failed due to being out of range. This can happen for strings of - // the form \ u { d_4 d_3 d_2 d_1 d_0 } where d_4 is a hexidecimal not + // the form \ u { d_4 d_3 d_2 d_1 d_0 } where d_4 is a hexadecimal not // in the range [0-2]. isEscapeSequence = false; } |