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