[gcc r16-4400] libstdc++: Fix grammatical error in comment in std::advance
Jonathan Wakely
redi@gcc.gnu.org
Mon Oct 13 20:07:45 GMT 2025
https://gcc.gnu.org/g:fcd30bdb83e9ca29c99b49487f9b0eeb2c76d32e
commit r16-4400-gfcd30bdb83e9ca29c99b49487f9b0eeb2c76d32e
Author: Jonathan Wakely <jwakely@redhat.com>
Date: Thu Oct 9 15:21:16 2025 +0100
libstdc++: Fix grammatical error in comment in std::advance
libstdc++-v3/ChangeLog:
* include/bits/stl_iterator_base_funcs.h (advance): Fix comment.
Diff:
---
libstdc++-v3/include/bits/stl_iterator_base_funcs.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libstdc++-v3/include/bits/stl_iterator_base_funcs.h b/libstdc++-v3/include/bits/stl_iterator_base_funcs.h
index f78e5356d090..fb7b6b0aa36c 100644
--- a/libstdc++-v3/include/bits/stl_iterator_base_funcs.h
+++ b/libstdc++-v3/include/bits/stl_iterator_base_funcs.h
@@ -265,7 +265,7 @@ namespace __detail
// A type which satisfies the C++20 bidirectional_iterator concept might
// have input_iterator_tag as its iterator_category type, which would
// mean we select the __advance overload which cannot move backwards.
- // A C++20 random_access_iterator we might select the O(n) __advance
+ // For a C++20 random_access_iterator we might select the O(n) __advance
// if it doesn't meet the Cpp17RandomAccessIterator requirements.
// So for C++20 iterator types we can just choose to do the right thing.
if constexpr (__detail::__promotable_iterator<_InputIterator>
More information about the Libstdc++-cvs
mailing list