Fix typo in get_next_word(...)
This commit is contained in:
parent
3fee6e2538
commit
c4f9a01b7f
1 changed files with 1 additions and 1 deletions
|
@ -16,7 +16,7 @@ std::string get_next_word(std::istream *i) {
|
|||
if (in != std::char_traits<char>::eof() && in != ' ' && in != '\n' && in != '\r') {
|
||||
word.push_back((char)in);
|
||||
} else if (in == ' '|| in == '\n' || in == '\r' || in == '\t') {
|
||||
if (word.empty()) {
|
||||
if (!word.empty()) {
|
||||
break;
|
||||
} else {
|
||||
continue;
|
||||
|
|
Loading…
Reference in a new issue