about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2018-12-13T09·17+0100
committerGitHub <noreply@github.com>2018-12-13T09·17+0100
commit522cebdef427bb8aad0f3ca140deff2e8bb88017 (patch)
tree10d9fdd743e6b2341aca3a66c28978773aa47047
parent800cd55ab74fffe9a1d212c2b8caf4024ebd98b6 (diff)
parent21d494da8304aa496721c7695573b9ad796a30be (diff)
Merge pull request #2578 from volth/patch-5
probably typo
-rw-r--r--src/libutil/util.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libutil/util.cc b/src/libutil/util.cc
index e12c4b258c25..ce50334e1e62 100644
--- a/src/libutil/util.cc
+++ b/src/libutil/util.cc
@@ -202,7 +202,7 @@ bool isInDir(const Path & path, const Path & dir)
 
 bool isDirOrInDir(const Path & path, const Path & dir)
 {
-    return path == dir or isInDir(path, dir);
+    return path == dir || isInDir(path, dir);
 }