From: Joel Rosdahl Date: Sun, 27 Feb 2022 19:11:07 +0000 (+0100) Subject: style: Tweak comments X-Git-Tag: v4.6~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=052277d8d4d24901892864679e2e1a55b0c5b47b;p=thirdparty%2Fccache.git style: Tweak comments --- diff --git a/src/util/path.cpp b/src/util/path.cpp index ce2c6b9eb..b42d61e35 100644 --- a/src/util/path.cpp +++ b/src/util/path.cpp @@ -1,4 +1,4 @@ -// Copyright (C) 2021 Joel Rosdahl and other contributors +// Copyright (C) 2021-2022 Joel Rosdahl and other contributors // // See doc/AUTHORS.adoc for a complete list of contributors. // @@ -47,7 +47,7 @@ path_starts_with(nonstd::string_view path, nonstd::string_view prefix) for (size_t i = 0, j = 0; i < path.length() && j < prefix.length(); ++i, ++j) { #ifdef _WIN32 - // skip escaped backslashes \\\\ as seen by the preprocessor + // Skip escaped backslashes \\\\ as seen by the preprocessor. if (i > 0 && path[i] == '\\' && path[i - 1] == '\\') { ++i; } @@ -55,7 +55,7 @@ path_starts_with(nonstd::string_view path, nonstd::string_view prefix) ++j; } - // handle back and forward slashes as equal + // Handle back and forward slashes as equal. if (path[i] == '/' && prefix[j] == '\\') { continue; }