]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libstdc++: Fix typo in comment in hashtable.h
authorJonathan Wakely <jwakely@redhat.com>
Tue, 5 Nov 2024 23:55:08 +0000 (23:55 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Mon, 2 Dec 2024 22:41:40 +0000 (22:41 +0000)
And tweak grammar in a couple of comments.

libstdc++-v3/ChangeLog:

* include/bits/hashtable.h: Fix spelling in comment.

(cherry picked from commit bcf40c70f8b0fbc54ec14adea31f274e1791b1ed)

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

index f48f3651f186576714f5f9f1c8544b954b5f3fb3..5050f34f999d8c9b4a33dbd906efd01188e60ef1 100644 (file)
@@ -336,7 +336,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
       struct __hash_code_base_access : __hash_code_base
       { using __hash_code_base::_M_bucket_index; };
 
-      // To get bucket index we need _RangeHash not to throw.
+      // To get bucket index we need _RangeHash to be non-throwing.
       static_assert(is_nothrow_default_constructible<_RangeHash>::value,
                    "Functor used to map hash code to bucket index"
                    " must be nothrow default constructible");
@@ -345,7 +345,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
                    "Functor used to map hash code to bucket index must be"
                    " noexcept");
 
-      // To compute bucket index we also need _ExtratKey not to throw.
+      // To compute bucket index we also need _ExtractKey to be non-throwing.
       static_assert(is_nothrow_default_constructible<_ExtractKey>::value,
                    "_ExtractKey must be nothrow default constructible");
       static_assert(noexcept(