On Thu, Apr 2, 2026 at 12:01 AM Jonathan Wakely <[email protected]> wrote:

> libstdc++-v3/ChangeLog:
>
>         * include/bits/chrono.h (floor, ceil, round): Fix Doxygen
>         comments to use correct parameter name and describe return value
>         more accurately.
> ---
>
> Tested x86_64-linux, docs built with Doxygen 1.13.2 and 1.17.0 (from git)
>
LGTM.

>
>  libstdc++-v3/include/bits/chrono.h | 12 ++++++------
>  1 file changed, 6 insertions(+), 6 deletions(-)
>
> diff --git a/libstdc++-v3/include/bits/chrono.h
> b/libstdc++-v3/include/bits/chrono.h
> index 911cc791ca0e..fd91505c16f4 100644
> --- a/libstdc++-v3/include/bits/chrono.h
> +++ b/libstdc++-v3/include/bits/chrono.h
> @@ -1035,8 +1035,8 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
>       * returns the closest value that is less than the argument.
>       *
>       * @tparam _ToDur The `duration` type to use for the result.
> -     * @param __t A time point.
> -     * @return The value of `__d` converted to type `_ToDur`.
> +     * @param __tp A time point.
> +     * @return The value of `__tp` rounded down to the precision of
> `_ToDur`.
>       * @since C++17
>       */
>      template<typename _ToDur, typename _Clock, typename _Dur>
> @@ -1056,8 +1056,8 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
>       * returns the closest value that is greater than the argument.
>       *
>       * @tparam _ToDur The `duration` type to use for the result.
> -     * @param __t A time point.
> -     * @return The value of `__d` converted to type `_ToDur`.
> +     * @param __tp A time point.
> +     * @return The value of `__tp` rounded up to the precision of
> `_ToDur`.
>       * @since C++17
>       */
>      template<typename _ToDur, typename _Clock, typename _Dur>
> @@ -1078,8 +1078,8 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
>       *
>       * @tparam _ToDur The `duration` type to use for the result,
>       *                which must have a non-floating-point `rep` type.
> -     * @param __t A time point.
> -     * @return The value of `__d` converted to type `_ToDur`.
> +     * @param __tp A time point.
> +     * @return The value of `__tp` rounded to the precision `_ToDur`.
>       * @since C++17
>       */
>      template<typename _ToDur, typename _Clock, typename _Dur>
> --
> 2.53.0
>
>

Reply via email to