]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libstdc++: Fix comment typo in std::atomic<std::shared_ptr<T>>
authorJonathan Wakely <jwakely@redhat.com>
Wed, 7 Feb 2024 14:51:37 +0000 (14:51 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Thu, 8 Feb 2024 21:48:45 +0000 (21:48 +0000)
libstdc++-v3/ChangeLog:

* include/bits/shared_ptr_atomic.h: Fix typo in comment.

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

index 58aea96492e5717c1af857e844f4e7b0fe1d8808..1403c6a17c5f6cd32e2b7f0075ddd6f8b058fa0e 100644 (file)
@@ -557,7 +557,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
       {
        __glibcxx_assert(__o != memory_order_release
                           && __o != memory_order_acq_rel);
-       // Ensure that the correct value of _M_ptr is visible after locking.,
+       // Ensure that the correct value of _M_ptr is visible after locking,
        // by upgrading relaxed or consume to acquire.
        if (__o != memory_order_seq_cst)
          __o = memory_order_acquire;