diff --git a/doc/api.md b/doc/api.md index 5b102771..e86f0b06 100644 --- a/doc/api.md +++ b/doc/api.md @@ -551,12 +551,12 @@ This is a known limitation of "perfect" forwarding in C++. ## Format String Compilation -`fmt/compile.h` provides format string compilation enabled via the -`FMT_COMPILE` macro or the `_cf` user-defined literal defined in -namespace `fmt::literals`. Format strings marked with `FMT_COMPILE` -or `_cf` are parsed, checked and converted into efficient formatting -code at compile-time. This supports arguments of built-in and string -types as well as user-defined types with `format` functions taking +`fmt/compile.h` provides format string compilation and compile-time +(`constexpr`) formatting enabled via the `FMT_COMPILE` macro or the `_cf` +user-defined literal defined in namespace `fmt::literals`. Format strings +marked with `FMT_COMPILE` or `_cf` are parsed, checked and converted into +efficient formatting code at compile-time. This supports arguments of built-in +and string types as well as user-defined types with `format` functions taking the format context type as a template parameter in their `formatter` specializations. For example: