commit | 55906852d451c0b11bb6fba7e674ad44568e951f | [log] [tgz] |
---|---|---|
author | Shinichiro Hamaji <shinichiro.hamaji@gmail.com> | Mon Jun 29 16:40:33 2015 +0900 |
committer | Shinichiro Hamaji <shinichiro.hamaji@gmail.com> | Mon Jun 29 16:41:20 2015 +0900 |
tree | d7b49491b8efc8ca4c3498bfc427a0e993fe30d0 | |
parent | 1310834a240dca89fb06b4fe8dfccbdf97c83144 [diff] [blame] |
Fix $(dir /foo) for both C++ and Go
diff --git a/func.cc b/func.cc index ff18937..531bba4 100644 --- a/func.cc +++ b/func.cc
@@ -267,8 +267,7 @@ WordWriter ww(s); for (StringPiece tok : WordScanner(*text)) { ww.Write(Dirname(tok)); - if (tok != "/") - s->push_back('/'); + s->push_back('/'); } }