mirror of
https://github.com/fmtlib/fmt.git
synced 2025-07-29 18:27:40 +02:00
Update README.rst
This commit is contained in:
@ -68,7 +68,7 @@ C++ Format can be used as a safe portable replacement for ``itoa``:
|
||||
|
||||
.. code-block:: c++
|
||||
|
||||
fmt::Writer w;
|
||||
fmt::MemoryWriter w;
|
||||
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()
|
||||
|
Reference in New Issue
Block a user