Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Sep 30, 2024
1 parent 5a15646 commit 1c6ddd0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions builder/src/utils.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -165,9 +165,9 @@ It find_matching(It begin, It end, char value) {
std::size_t parens = 0;
std::size_t brackets = 0;
std::size_t braces = 0;
std::size_t carrets = 0;
std::size_t carets = 0;
const auto all_zero = [&]() {
return !parens && !brackets && !braces && !carrets;
return !parens && !brackets && !braces && !carets;
};
for (auto it = begin; it != end; ++it) {
if (all_zero() && *it == value) return it;
Expand All @@ -194,10 +194,10 @@ It find_matching(It begin, It end, char value) {
--braces;
break;
case '<':
++carrets;
++carets;
break;
case '>':
if (carrets == 0) return end;
if (carets == 0) return end;
--carrets;
break;
default:
Expand Down

0 comments on commit 1c6ddd0

Please sign in to comment.