aboutsummaryrefslogtreecommitdiff
path: root/strutil.cc
diff options
context:
space:
mode:
authorShinichiro Hamaji <shinichiro.hamaji@gmail.com>2015-06-16 19:38:47 +0900
committerShinichiro Hamaji <shinichiro.hamaji@gmail.com>2015-06-18 11:25:43 +0900
commit5e26e2277f026594eebc303225c937245b73c7f5 (patch)
treea9508a4c06dba1a7e97ec1b8ea544bd13bcaa6ee /strutil.cc
parent37591ce8fffb4ebaf96c83223e93c3c6b9b04651 (diff)
[C++] Fix WordWriter::MaybeAddWhitespace
Diffstat (limited to 'strutil.cc')
-rw-r--r--strutil.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/strutil.cc b/strutil.cc
index 01900d2..400565a 100644
--- a/strutil.cc
+++ b/strutil.cc
@@ -56,7 +56,7 @@ WordWriter::WordWriter(string* o)
}
void WordWriter::MaybeAddWhitespace() {
- if (!needs_space_) {
+ if (needs_space_) {
out_->push_back(' ');
} else {
needs_space_ = true;