From 257b2106b332bb248f755546db840490c0845b4a Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Fri, 6 Sep 2013 15:18:57 -0700 Subject: [PATCH] Expand example. --- README.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.rst b/README.rst index 1fa6e5d1..b2c3047d 100644 --- a/README.rst +++ b/README.rst @@ -59,7 +59,8 @@ Format can be used as a safe portable replacement to ``itoa``: .. code-block:: c++ fmt::Writer w; - w << 42; // replaces itoa(42, buffer, 10) + w << 42; // replaces itoa(42, buffer, 10) + w << fmt::hex(42); // replaces itoa(42, buffer, 16) // access the string using w.str() or w.c_str() An object of any user-defined type for which there is an overloaded