diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt index a2635303..e0487c6f 100644 --- a/doc/CMakeLists.txt +++ b/doc/CMakeLists.txt @@ -2,5 +2,5 @@ add_custom_command(OUTPUT html/index.html COMMAND doxygen COMMAND rm -rf html COMMAND ../sphinx/sphinx-build.py -b html . html - DEPENDS Doxyfile conf.py index.rst _templates/layout.html) + DEPENDS ../format.h Doxyfile conf.py index.rst _templates/layout.html) add_custom_target(doc DEPENDS html/index.html) diff --git a/doc/index.rst b/doc/index.rst index 19cbb2f7..2886cf71 100644 --- a/doc/index.rst +++ b/doc/index.rst @@ -41,7 +41,7 @@ Write API .. doxygenfunction:: fmt::hexu -.. doxygenfunction:: fmt::pad +.. doxygenfunction:: fmt::pad(int, unsigned, Char) .. _formatstrings: diff --git a/format.h b/format.h index febecdc9..dc3af848 100644 --- a/format.h +++ b/format.h @@ -665,8 +665,9 @@ IntFormatSpec > hexu(int value); **Example**:: - std::string s = str(Writer() << pad(hex(0xcafe), 8, '0')); - // s == "0000cafe" + Writer out; + out << pad(hex(0xcafe), 8, '0'); + // out.str() == "0000cafe" \endrst */