From 1010b7f148ff7e55a336c84a609013097290498e Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Mon, 4 Jul 2022 08:18:44 -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 a8e02e02..f5bc6526 100644 --- a/doc/api.rst +++ b/doc/api.rst @@ -308,10 +308,10 @@ If a type provides both a ``formatter`` specialization and an implicit conversion to a formattable type, the specialization takes precedence over the conversion. -For scoped enums (enum classes) {fmt} also provides the ``format_as`` extension -API. To format an enum via this API define ``format_as`` that takes this enum -and converts it to the underlying type. ``format_as`` should be defined in the -same namespace as the enum. +For enums {fmt} also provides the ``format_as`` extension API. To format an enum +via this API define ``format_as`` that takes this enum and converts it to the +underlying type. ``format_as`` should be defined in the same namespace as the +enum. Example (https://godbolt.org/z/r7vvGE1v7)::