From 9e60304869797c98bd4de15b50fbb1f96fd9bf1f Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Wed, 28 Dec 2022 06:58:04 -0800 Subject: [PATCH] Clarify that unused args are allowed --- doc/api.rst | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/doc/api.rst b/doc/api.rst index 6f790f8f..1402f7c0 100644 --- a/doc/api.rst +++ b/doc/api.rst @@ -71,10 +71,12 @@ checked at compile time in C++20. To pass a runtime format string wrap it in 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 +Compile-time format string checks are enabled by default on compilers +that support C++20 ``consteval``. On older compilers you can use the :ref:`FMT_STRING `: macro defined in ``fmt/format.h`` instead. +Unused arguments are allowed as in Python's `str.format` and ordinary functions. + .. doxygenclass:: fmt::basic_format_string :members: