diff --git a/README.rst b/README.rst index bf6c4290..df35012e 100644 --- a/README.rst +++ b/README.rst @@ -24,6 +24,11 @@ This prints "Hello, world!" to stdout:: fmt::Print("Hello, {0}!") << "world"; +Arguments are accessed by position and arguments' indices can be repeated: + + std::string s = str(fmt::Format("{0}{1}{0}") << "abra" << "cad"); + // s == "abracadabra" + Motivation ----------