mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-24 21:16:56 +00:00
Update README.rst
This commit is contained in:
parent
fae3ae67b9
commit
43b389f358
@ -68,7 +68,7 @@ C++ Format can be used as a safe portable replacement for ``itoa``:
|
|||||||
|
|
||||||
.. code-block:: c++
|
.. code-block:: c++
|
||||||
|
|
||||||
fmt::Writer w;
|
fmt::MemoryWriter w;
|
||||||
w << 42; // replaces itoa(42, buffer, 10)
|
w << 42; // replaces itoa(42, buffer, 10)
|
||||||
w << fmt::hex(42); // replaces itoa(42, buffer, 16)
|
w << fmt::hex(42); // replaces itoa(42, buffer, 16)
|
||||||
// access the string using w.str() or w.c_str()
|
// access the string using w.str() or w.c_str()
|
||||||
|
Loading…
Reference in New Issue
Block a user