mirror of
https://github.com/fmtlib/fmt.git
synced 2026-04-30 19:09:22 +08:00
Tweak docs
This commit is contained in:
parent
4e1b170b44
commit
0f133953fb
@ -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`
|
||||
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
|
||||
be explicitly #included. We can instead use the `import fmt;` statement instead.
|
||||
All other functionality, listed below remains the same.
|
||||
With the C++ module API, the headers listed above don't need to be included.
|
||||
You can use the `import fmt;` statement instead. All other functionality,
|
||||
listed below, remains the same.
|
||||
|
||||
## Base API
|
||||
|
||||
|
||||
@ -9,7 +9,7 @@ with CMake, while the [Build Systems](#build-systems) section covers the rest.
|
||||
## CMake
|
||||
|
||||
{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
|
||||
library for improved build times.
|
||||
|
||||
@ -43,7 +43,7 @@ There are three primary ways to use {fmt} with CMake:
|
||||
|
||||
### 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`
|
||||
accordingly.
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user