]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libstdc++: Fix grammatical error in comment in std::advance
authorJonathan Wakely <jwakely@redhat.com>
Thu, 9 Oct 2025 14:21:16 +0000 (15:21 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Mon, 13 Oct 2025 20:07:30 +0000 (21:07 +0100)
libstdc++-v3/ChangeLog:

* include/bits/stl_iterator_base_funcs.h (advance): Fix comment.

libstdc++-v3/include/bits/stl_iterator_base_funcs.h

index f78e5356d0904c0be04a712b0cb455c321b452a5..fb7b6b0aa36cba8c5b57f2e5a6251e1f709a2d2b 100644 (file)
@@ -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>