1
0
mirror of https://github.com/nlohmann/json synced 2024-12-18 07:01:05 +00:00

Fixed typo in comments

This commit is contained in:
Raphael Isemann 2015-01-09 11:57:39 +01:00
parent fa0ee9c927
commit 4a39bfb17e

View File

@ -2068,12 +2068,12 @@ std::string json::parser::parseString()
} }
} }
// remember if we have a even amount of backslashes before the current character // remember if we have an even amount of backslashes before the current character
if (currentChar == '\\') { if (currentChar == '\\') {
// jump between even/uneven for each backslash we encounter // jump between even/uneven for each backslash we encounter
evenAmountOfBackslashes = !evenAmountOfBackslashes; evenAmountOfBackslashes = !evenAmountOfBackslashes;
} else { } else {
// zero backslashes are also a even number, so as soon as we encounter a non-backslash // zero backslashes are also an even number, so as soon as we encounter a non-backslash
// the chain of backslashes breaks and we start again from zero // the chain of backslashes breaks and we start again from zero
evenAmountOfBackslashes = true; evenAmountOfBackslashes = true;
} }