Update docs
This commit is contained in:
+2
-2
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user