mirror of
https://github.com/fmtlib/fmt.git
synced 2025-07-31 19:24:48 +02:00
Update README.rst
This commit is contained in:
@@ -126,7 +126,7 @@ Formatting of user-defined types is supported via a simple
|
|||||||
|
|
||||||
template <typename FormatContext>
|
template <typename FormatContext>
|
||||||
auto format(const date &d, FormatContext &ctx) {
|
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);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user