From f61ca2ec4fe0e9c6491270f2cd13ac2797fbc1f3 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Wed, 21 Mar 2018 06:46:41 -0700 Subject: [PATCH] Update readme --- README.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.rst b/README.rst index 83df1c17..44cd41b6 100644 --- a/README.rst +++ b/README.rst @@ -127,18 +127,18 @@ An object of any user-defined type for which there is an overloaded You can create your own functions similar to `format `_ and `print `_ -which take arbitrary arguments: +which take arbitrary arguments ([godbolt](https://godbolt.org/g/uoSRRh): .. code:: c++ // Prints formatted error message. - void vreport_error(const char *format, fmt::args args) { + void vreport_error(const char *format, fmt::format_args args) { fmt::print("Error: "); fmt::vprint(format, args); } template void report_error(const char *format, const Args & ... args) { - vreport_error(format, fmt::make_args(args)); + vreport_error(format, fmt::make_args(args...)); } report_error("file not found: {}", path);