]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libstdc++: Fix doxygen comment for std::out_ptr [PR124024]
authorJonathan Wakely <jwakely@redhat.com>
Mon, 9 Feb 2026 20:41:46 +0000 (20:41 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Mon, 9 Feb 2026 20:43:16 +0000 (20:43 +0000)
libstdc++-v3/ChangeLog:

PR libstdc++/124024
* include/bits/out_ptr.h (out_ptr): Fix doxygen comment to refer
to the right function.
(inout_ptr): Improve markup in doxygen comment.

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

index 00ba09d0f18db684441d9b00e044d9e71043ee2e..48fe3475b2f76e2616e99dea7b1038ce463e98cd 100644 (file)
@@ -397,7 +397,7 @@ namespace __detail
    * @tparam _Pointer The type of pointer to convert to.
    * @param __s The pointer that should take ownership of the result.
    * @param __args... Arguments to use when resetting the smart pointer.
-   * @return A std::inout_ptr_t referring to `__s`.
+   * @return A `std::out_ptr_t` referring to `__s`.
    * @since C++23
    * @headerfile <memory>
    */
@@ -418,7 +418,7 @@ namespace __detail
    * @tparam _Pointer The type of pointer to convert to.
    * @param __s The pointer that should take ownership of the result.
    * @param __args... Arguments to use when resetting the smart pointer.
-   * @return A std::inout_ptr_t referring to `__s`.
+   * @return A `std::inout_ptr_t` referring to `__s`.
    * @since C++23
    * @headerfile <memory>
    */