diff --git a/README.rst b/README.rst index db59b610..f7474095 100644 --- a/README.rst +++ b/README.rst @@ -126,7 +126,7 @@ Formatting of user-defined types is supported via a simple template 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); } };