From 3178bb9a265e36c5fca244f1e36a7d0628d7bbde Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Fri, 16 Sep 2022 10:29:53 -0700 Subject: [PATCH] Update docs --- doc/api.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/api.rst b/doc/api.rst index 4b32bd4f..bcd9289a 100644 --- a/doc/api.rst +++ b/doc/api.rst @@ -72,8 +72,8 @@ Compile-Time Format String Checks --------------------------------- Compile-time checks are enabled by default on compilers that support C++20 -``consteval``. On older compilers you can use the ``FMT_STRING`` macro defined -in ``fmt/format.h`` instead. +``consteval``. On older compilers you can use the +:ref:`FMT_STRING `: macro defined in ``fmt/format.h`` instead. .. doxygenclass:: fmt::basic_format_string :members: @@ -88,8 +88,8 @@ Formatting User-Defined Types The {fmt} library provides formatters for many standard C++ types. See :ref:`fmt/ranges.h ` for ranges and tuples including standard containers such as ``std::vector``, :ref:`fmt/chrono.h ` for date -and time formatting and :ref:`fmt/std.h ` for path and variant -formatting. +and time formatting and :ref:`fmt/std.h ` for other standard library +types. To make a user-defined type formattable, specialize the ``formatter`` struct template and implement ``parse`` and ``format`` methods::