From 891da2f47402d0903f2f157dec4a0099bf365d07 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Tue, 13 May 2014 07:39:18 -0700 Subject: [PATCH] Fix docs. --- doc/CMakeLists.txt | 2 +- doc/index.rst | 2 +- format.h | 5 +++-- 3 files changed, 5 insertions(+), 4 deletions(-) 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 */