Update README.rst

This commit is contained in:
Victor Zverovich 2018-12-02 08:22:51 -08:00 committed by GitHub
parent e7e2ab1070
commit 0c7f5c3ca4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -126,7 +126,7 @@ Formatting of user-defined types is supported via a simple
template <typename FormatContext>
auto format(const date &d, FormatContext &ctx) {
return format_to(ctx.begin(), "{}-{}-{}", d.year, d.month, d.day);
return format_to(ctx.out(), "{}-{}-{}", d.year, d.month, d.day);
}
};