diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index f8a3bcc10..ce0d874b9 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -65,7 +65,7 @@ repos:
# clang-format
- repo: https://github.com/pre-commit/mirrors-clang-format
- rev: v17.0.4
+ rev: v17.0.5
hooks:
- id: clang-format
exclude: ^external/.*
diff --git a/include/slang/util/Iterator.h b/include/slang/util/Iterator.h
index 427107602..f01e97d7c 100644
--- a/include/slang/util/Iterator.h
+++ b/include/slang/util/Iterator.h
@@ -349,8 +349,8 @@ class iterator_facade {
/// requires Derived::distance_to()
template T>
[[nodiscard]] friend constexpr decltype(auto) operator-(
- const T & left,
- const self_type & right) noexcept(detail::has_nothrow_distance_to) {
+ const T& left,
+ const self_type& right) noexcept(detail::has_nothrow_distance_to) {
return right.distance_to(left);
}
@@ -358,8 +358,8 @@ class iterator_facade {
/// requires Derived::distance_to()
template Sentinel>
[[nodiscard]] friend constexpr decltype(auto) operator-(
- const self_type & left,
- const Sentinel & right) noexcept(detail::has_nothrow_distance_to) {
+ const self_type& left,
+ const Sentinel& right) noexcept(detail::has_nothrow_distance_to) {
return -(right - left);
}