Tweak docs

This commit is contained in:
Victor Zverovich 2026-03-03 08:20:51 -08:00
parent 4e1b170b44
commit 0f133953fb
2 changed files with 6 additions and 6 deletions

View File

@ -20,11 +20,11 @@ The {fmt} library API consists of the following components:
All functions and types provided by the library reside in namespace `fmt` All functions and types provided by the library reside in namespace `fmt`
and macros have prefix `FMT_`. and macros have prefix `FMT_`.
## C++ Modules API ## C++ Module API
With the new C++ Modules API, all the headers listed above do not need to With the C++ module API, the headers listed above don't need to be included.
be explicitly #included. We can instead use the `import fmt;` statement instead. You can use the `import fmt;` statement instead. All other functionality,
All other functionality, listed below remains the same. listed below, remains the same.
## Base API ## Base API

View File

@ -9,7 +9,7 @@ with CMake, while the [Build Systems](#build-systems) section covers the rest.
## CMake ## CMake
{fmt} provides three CMake targets: `fmt::fmt` for the standard compiled library, {fmt} provides three CMake targets: `fmt::fmt` for the standard compiled library,
`fmt::fmt-module` for the C++ modules library and `fmt::fmt-header-only` for the `fmt::fmt-module` for the C++ module library and `fmt::fmt-header-only` for the
header-only library. It is recommended to use the compiled library or the module header-only library. It is recommended to use the compiled library or the module
library for improved build times. library for improved build times.
@ -43,7 +43,7 @@ There are three primary ways to use {fmt} with CMake:
### Alternative Targets ### Alternative Targets
In order to use the header-only target or the module target, simply substitute the In order to use the header-only target or the module target, simply substitute the
`fmt::fmt` in the above steps with `fmt::fmt-header-only` or `fmt::fmt-module` `fmt::fmt` in the above steps with `fmt::fmt-header-only` or `fmt::fmt-module`
accordingly. accordingly.