From d9b90029bf70fa9ffd1d8ffbe21fc3270cc28ab4 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Mon, 3 Jun 2024 06:25:14 -0700 Subject: [PATCH] Update docs --- doc/index.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/doc/index.md b/doc/index.md index 24b334d8..d51468a1 100644 --- a/doc/index.md +++ b/doc/index.md @@ -17,7 +17,7 @@ hide: at compile time. For example:
fmt::format("The answer is {:d}", "forty-two");
+ >fmt::format("{:d}", "I am not a number"); will give a compile-time error because d is not a valid format specifier for strings. APIs like @@ -55,8 +55,8 @@ hide: double to string02505007501,0001,2501,500ostringstreamostrstreamsprintfdoubleconvfmtTime (ns), smaller is better -The library minimizes dynamic memory allocations and allows -format string compilation. +The library minimizes dynamic memory allocations and can optionally +compile format strings to optimal code.

@@ -64,7 +64,7 @@ The library minimizes dynamic memory allocations and allows

Unicode support

{fmt} provides portable Unicode support on major operating systems - with UTF-8 and normal char strings. For example: + with UTF-8 and char strings. For example:

fmt::print("Слава Україні!");
@@ -89,8 +89,8 @@ The library minimizes dynamic memory allocations and allows

Code using {fmt} is usually several times faster to compile than the - equivalent iostreams code and while printf is faster still, the - gap is narrowing. + equivalent iostreams code and while printf compiles faster still, + the gap is narrowing.

→ Learn more