mirror of
https://github.com/fmtlib/fmt.git
synced 2025-07-31 03:07:36 +02:00
Fix an example.
This commit is contained in:
@ -24,7 +24,7 @@ This prints "Hello, world!" to stdout::
|
|||||||
|
|
||||||
fmt::Print("Hello, {0}!") << "world";
|
fmt::Print("Hello, {0}!") << "world";
|
||||||
|
|
||||||
Arguments are accessed by position and arguments' indices can be repeated:
|
Arguments are accessed by position and arguments' indices can be repeated::
|
||||||
|
|
||||||
std::string s = str(fmt::Format("{0}{1}{0}") << "abra" << "cad");
|
std::string s = str(fmt::Format("{0}{1}{0}") << "abra" << "cad");
|
||||||
// s == "abracadabra"
|
// s == "abracadabra"
|
||||||
|
Reference in New Issue
Block a user