From da5a2c64a3de649d6e7e20aff8e882cc2820577c Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 8 Oct 2024 01:09:27 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- builder/src/utils.hxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/builder/src/utils.hxx b/builder/src/utils.hxx index 59e00da..dbe8088 100644 --- a/builder/src/utils.hxx +++ b/builder/src/utils.hxx @@ -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; @@ -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: