mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-24 03:17:53 +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++
|
||||
|
||||
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()
|
||||
|
Loading…
Reference in New Issue
Block a user