Update docs

This commit is contained in:
Victor Zverovich
2018-03-04 09:55:17 -08:00
parent 86a9bc8291
commit 4023291759
4 changed files with 27 additions and 22 deletions
+2 -2
View File
@@ -1114,11 +1114,11 @@ struct named_arg : named_arg_base<Char> {
/**
\rst
Returns a named argument for formatting functions.
Returns a named argument to be used in a formatting function.
**Example**::
fmt::print("Elapsed time: {s:.2f} seconds", arg("s", 1.23));
fmt::print("Elapsed time: {s:.2f} seconds", fmt::arg("s", 1.23));
\endrst
*/
template <typename T>
+3 -3
View File
@@ -374,7 +374,7 @@ class locale_provider {
/**
\rst
A dynamically growing memory buffer for trivially copyable/constructible types
with the first SIZE elements stored in the object itself.
with the first ``SIZE`` elements stored in the object itself.
You can use one of the following typedefs for common character types:
@@ -388,7 +388,7 @@ class locale_provider {
**Example**::
memory_buffer out;
fmt::memory_buffer out;
format_to(out, "The answer is {}.", 42);
This will write the following output to the ``out`` object:
@@ -3487,7 +3487,7 @@ operator"" _format(const wchar_t *s, std::size_t) { return {s}; }
**Example**::
using namespace fmt::literals;
print("Elapsed time: {s:.2f} seconds", "s"_a=1.23);
fmt::print("Elapsed time: {s:.2f} seconds", "s"_a=1.23);
\endrst
*/
inline internal::udl_arg<char>
+1 -1
View File
@@ -635,7 +635,7 @@ inline int vfprintf(std::ostream &os, string_view format_str,
**Example**::
fprintf(cerr, "Don't %s!", "panic");
fmt::fprintf(cerr, "Don't %s!", "panic");
\endrst
*/
template <typename... Args>