mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-28 15:28:35 +00:00
Improve docs
This commit is contained in:
parent
709169a4d8
commit
1334eedaf5
@ -28,8 +28,8 @@ There are three primary ways to use {fmt} with CMake:
|
||||
|
||||
target_link_libraries(<your-target> fmt::fmt)
|
||||
|
||||
* **Installed**: You can find and use an [installed](#install) version of {fmt}
|
||||
in your `CMakeLists.txt` file as follows:
|
||||
* **Installed**: You can find and use an [installed](#installation) version of
|
||||
{fmt} in your `CMakeLists.txt` file as follows:
|
||||
|
||||
find_package(fmt)
|
||||
target_link_libraries(<your-target> fmt::fmt)
|
||||
|
@ -24,7 +24,7 @@ hide:
|
||||
<code>fmt::format</code></a> <b>prevent buffer overflow errors</b> via
|
||||
automatic memory management.
|
||||
</p>
|
||||
<a href="api#compile-time-format-string-checks">→ Learn more</a>
|
||||
<a href="api#compile-time-checks">→ Learn more</a>
|
||||
</div>
|
||||
|
||||
<div class="feature">
|
||||
@ -103,8 +103,8 @@ hide:
|
||||
<p>
|
||||
Type erasure is also used to prevent template bloat, resulting in <b>compact
|
||||
per-call binary code</b>. For example, a call to <code>fmt::print</code> with
|
||||
a single argument is fewer than <a href="https://godbolt.org/g/TZU4KF">ten
|
||||
x86-64 instructions</a>, comparable to <code>printf</code> despite adding
|
||||
a single argument is just <a href="https://godbolt.org/g/TZU4KF">a few
|
||||
instructions</a>, comparable to <code>printf</code> despite adding
|
||||
runtime safety, and much smaller than the equivalent iostreams code.
|
||||
</p>
|
||||
<p>
|
||||
|
Loading…
Reference in New Issue
Block a user