aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2024-11-05 23:55:08 +0000
committerJonathan Wakely <redi@gcc.gnu.org>2024-11-07 15:47:07 +0000
commitbcf40c70f8b0fbc54ec14adea31f274e1791b1ed (patch)
tree296935e360eecf859c4a36ea265bdface5c01d80 /libstdc++-v3
parente52cfd4bc23de14f1e1795bdf7ec161d94b8c087 (diff)
downloadgcc-bcf40c70f8b0fbc54ec14adea31f274e1791b1ed.zip
gcc-bcf40c70f8b0fbc54ec14adea31f274e1791b1ed.tar.gz
gcc-bcf40c70f8b0fbc54ec14adea31f274e1791b1ed.tar.bz2
libstdc++: Fix typo in comment in hashtable.h
And tweak grammar in a couple of comments. libstdc++-v3/ChangeLog: * include/bits/hashtable.h: Fix spelling in comment.
Diffstat (limited to 'libstdc++-v3')
-rw-r--r--libstdc++-v3/include/bits/hashtable.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/libstdc++-v3/include/bits/hashtable.h b/libstdc++-v3/include/bits/hashtable.h
index 47321a9..8b312d2 100644
--- a/libstdc++-v3/include/bits/hashtable.h
+++ b/libstdc++-v3/include/bits/hashtable.h
@@ -344,7 +344,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");
@@ -353,7 +353,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 be non-throwing.
static_assert(is_nothrow_default_constructible<_ExtractKey>::value,
"_ExtractKey must be nothrow default constructible");
static_assert(noexcept(