Improve docs

This commit is contained in:
Victor Zverovich committed 2020-11-08 05:40:39 -08:00
1 parent 701ed6c874
commit 4f7df299ea
3 files changed
+22 -23

No files matched your search

+5 -1
View File
@@ -523,11 +523,15 @@ void print(std::FILE* f, const text_style& ts, const S& format_str,
}
/**
\rst
Formats a string and prints it to stdout using ANSI escape sequences to
specify text formatting.
Example:
**Example**:
fmt::print(fmt::emphasis::bold | fg(fmt::color::red),
"Elapsed time: {0:.2f} seconds", 1.23);
\endrst
*/
template <typename S, typename... Args,
FMT_ENABLE_IF(detail::is_string<S>::value)>