We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b20b32a commit e0c1095Copy full SHA for e0c1095
src/include/common/logger.h
@@ -42,7 +42,7 @@ namespace bustub {
42
using cstr = const char *;
43
44
static constexpr auto PastLastSlash(cstr a, cstr b) -> cstr {
45
- return *a == '\0' ? b : *b == '/' ? PastLastSlash(a + 1, a + 1) : PastLastSlash(a + 1, b);
+ return *a == '\0' ? b : *a == '/' ? PastLastSlash(a + 1, a + 1) : PastLastSlash(a + 1, b);
46
}
47
48
static constexpr auto PastLastSlash(cstr a) -> cstr { return PastLastSlash(a, a); }
0 commit comments