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::