From 93d7cb12f15a6de9dc2b1c333e0daec4909129ff Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Wed, 10 May 2023 16:29:47 -0700 Subject: [PATCH] Fix formatting --- include/fmt/format.h | 29 ++++++++++++++--------------- 1 file changed, 14 insertions(+), 15 deletions(-) diff --git a/include/fmt/format.h b/include/fmt/format.h index 1e9bf6f8..e6cfff86 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -1413,8 +1413,7 @@ class utf8_to_utf16 { }; // A converter from UTF-16/UTF-32 (host endian) to UTF-8. -template -class to_utf8 { +template class to_utf8 { private: Buffer buffer_; @@ -4179,22 +4178,22 @@ FMT_API auto vsystem_error(int error_code, string_view format_str, format_args args) -> std::system_error; /** - \rst - Constructs :class:`std::system_error` with a message formatted with - ``fmt::format(fmt, args...)``. + \rst + Constructs :class:`std::system_error` with a message formatted with + ``fmt::format(fmt, args...)``. *error_code* is a system error code as given by ``errno``. - **Example**:: + **Example**:: - // This throws std::system_error with the description - // cannot open file 'madeup': No such file or directory - // or similar (system message may vary). - const char* filename = "madeup"; - std::FILE* file = std::fopen(filename, "r"); - if (!file) - throw fmt::system_error(errno, "cannot open file '{}'", filename); - \endrst -*/ + // This throws std::system_error with the description + // cannot open file 'madeup': No such file or directory + // or similar (system message may vary). + const char* filename = "madeup"; + std::FILE* file = std::fopen(filename, "r"); + if (!file) + throw fmt::system_error(errno, "cannot open file '{}'", filename); + \endrst + */ template auto system_error(int error_code, format_string fmt, T&&... args) -> std::system_error {