[committed] libstdc++: Fix typo in comment
Tested x86_64-linux. Pushed to trunk. -- >8 -- libstdc++-v3/ChangeLog: * include/bits/stl_uninitialized.h: Fix typo in comment. --- libstdc++-v3/include/bits/stl_uninitialized.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libstdc++-v3/include/bits/stl_uninitialized.h b/libstdc++-v3/include/bits/stl_uninitialized.h index a9b802774c6..18bc393641b 100644 --- a/libstdc++-v3/include/bits/stl_uninitialized.h +++ b/libstdc++-v3/include/bits/stl_uninitialized.h @@ -1119,7 +1119,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION #ifdef __cpp_lib_is_constant_evaluated if (std::is_constant_evaluated()) { - // Can't use memcpu. Wrap the pointer so that __relocate_a_1 + // Can't use memcpy. Wrap the pointer so that __relocate_a_1 // resolves to the non-trivial overload above. __gnu_cxx::__normal_iterator<_Tp*, void> __out(__result); __out = std::__relocate_a_1(__first, __last, __out, __alloc); -- 2.42.0
[committed] libstdc++: Fix typo in comment
Pushed to trunk. -- >8 -- Reported by Jonny Grant. libstdc++-v3/ChangeLog: * include/bits/allocator.h: Fix typo in comment. --- libstdc++-v3/include/bits/allocator.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libstdc++-v3/include/bits/allocator.h b/libstdc++-v3/include/bits/allocator.h index be67789c1cd..abbd753d33d 100644 --- a/libstdc++-v3/include/bits/allocator.h +++ b/libstdc++-v3/include/bits/allocator.h @@ -62,7 +62,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION // Since C++20 the primary template should be used for allocator, // but then it would have a non-trivial default ctor and dtor for C++20, - // but trivial for C++98-17, which would be an ABI incompatibiliy between + // but trivial for C++98-17, which would be an ABI incompatibility between // different standard dialects. So C++20 still uses the allocator // explicit specialization, with the historical ABI properties, but with // the same members that are present in the primary template. -- 2.39.2
[committed] libstdc++: Fix typo in comment in bits/cow_string.h
Pushed to trunk. -- >8 -- libstdc++-v3/ChangeLog: * include/bits/cow_string.h: Fix typo in comment. --- libstdc++-v3/include/bits/cow_string.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libstdc++-v3/include/bits/cow_string.h b/libstdc++-v3/include/bits/cow_string.h index ad9929c4ad3..1ee84e60678 100644 --- a/libstdc++-v3/include/bits/cow_string.h +++ b/libstdc++-v3/include/bits/cow_string.h @@ -26,7 +26,7 @@ * This is an internal header file, included by other library headers. * Do not attempt to use it directly. @headername{string} * - * Defines the reference-counted COW string implentation. + * Defines the reference-counted COW string implementation. */ #ifndef _COW_STRING_H @@ -3406,7 +3406,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION } else { - // Todo: overlapping case. + // TODO: overlapping case. const basic_string __tmp(__s, __n2); return _M_replace_safe(__pos, __n1, __tmp._M_data(), __n2); } -- 2.39.2
[committed] libstdc++: Fix typo in comment
Tested powerpc64le-linux, pushed to trunk. libstdc++-v3/ChangeLog: * testsuite/20_util/shared_ptr/cons/array.cc: Fix comment. --- libstdc++-v3/testsuite/20_util/shared_ptr/cons/array.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libstdc++-v3/testsuite/20_util/shared_ptr/cons/array.cc b/libstdc++-v3/testsuite/20_util/shared_ptr/cons/array.cc index 7dc0c619333..d69d90bd71d 100644 --- a/libstdc++-v3/testsuite/20_util/shared_ptr/cons/array.cc +++ b/libstdc++-v3/testsuite/20_util/shared_ptr/cons/array.cc @@ -143,7 +143,7 @@ test08() VERIFY( count == 0 ); } -// Converting constrcutor +// Converting constructor void test09() -- 2.31.1
[committed] libstdc++: Fix typo in comment
libstdc++-v3/ChangeLog: * config/os/gnu-linux/os_defines.h: Fix type in comment. Tested powerpc64le-linux. Committed to trunk. commit 19aa9bc9897955817622574e62b53b24ae0837e9 Author: Jonathan Wakely Date: Thu Apr 22 15:48:29 2021 libstdc++: Fix typo in comment libstdc++-v3/ChangeLog: * config/os/gnu-linux/os_defines.h: Fix type in comment. diff --git a/libstdc++-v3/config/os/gnu-linux/os_defines.h b/libstdc++-v3/config/os/gnu-linux/os_defines.h index 64f78df8eef..d5bb2a1886e 100644 --- a/libstdc++-v3/config/os/gnu-linux/os_defines.h +++ b/libstdc++-v3/config/os/gnu-linux/os_defines.h @@ -33,7 +33,7 @@ // System-specific #define, typedefs, corrections, etc, go here. This // file will come before all others. -// This keeps isanum, et al from being propagated as macros. +// This keeps isalnum, et al from being propagated as macros. #define __NO_CTYPE 1 #include