Improve docs

This commit is contained in:
Victor Zverovich
2020-11-08 05:40:39 -08:00
parent 701ed6c874
commit 4f7df299ea
3 changed files with 22 additions and 23 deletions

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)>