[committed] libstdc++: Fix comment typo and remove incomplete comment

Jonathan Wakely jwakely@redhat.com
Wed Oct 14 15:45:23 GMT 2026


libstdc++-v3/ChangeLog:

	* include/bits/random.h (_Select_uint_least_t<>): Fix typo in
	comment.
	* include/bits/uniform_int_dist.h (_Select_uint_least_t): Remove
	comment with incomplete sentence.
---

Pushed to trunk.

 libstdc++-v3/include/bits/random.h           | 2 +-
 libstdc++-v3/include/bits/uniform_int_dist.h | 1 -
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/libstdc++-v3/include/bits/random.h b/libstdc++-v3/include/bits/random.h
index f3b8e6c244e1..fcda47379166 100644
--- a/libstdc++-v3/include/bits/random.h
+++ b/libstdc++-v3/include/bits/random.h
@@ -569,7 +569,7 @@ _GLIBCXX_END_INLINE_ABI_NAMESPACE(_V2)
       struct _Shift<_UIntType, __w, true>
       { static constexpr _UIntType __value = _UIntType(1) << __w; };
 
-// Primary template and other specializtions are defined in bits/uniform_int_dist.h.
+// Primary template and other specializations are defined in bits/uniform_int_dist.h.
 #if __SIZEOF_INT128__ <= __SIZEOF_LONG_LONG__ \
     && __has_builtin(__builtin_add_overflow)  \
     && __has_builtin(__builtin_sub_overflow)  \
diff --git a/libstdc++-v3/include/bits/uniform_int_dist.h b/libstdc++-v3/include/bits/uniform_int_dist.h
index 554a82cd72ee..a6b2ba8431b4 100644
--- a/libstdc++-v3/include/bits/uniform_int_dist.h
+++ b/libstdc++-v3/include/bits/uniform_int_dist.h
@@ -97,7 +97,6 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
       struct _Select_uint_least_t<__s, 2>
       { using type = unsigned long long; };
 
-// Alternate specialization for  
 #if __SIZEOF_INT128__ > __SIZEOF_LONG_LONG__
     template<int __s>
       struct _Select_uint_least_t<__s, 1>
-- 
2.56.0



More information about the Libstdc++ mailing list