mirror of
https://github.com/fmtlib/fmt.git
synced 2024-09-04 05:59:13 +00:00
Don't pass seconds as a double in examples
This commit is contained in:
parent
ea1187f4c8
commit
2a2048a785
@ -2024,7 +2024,7 @@ constexpr auto make_format_args(T&... args)
|
||||
*
|
||||
* **Example**:
|
||||
*
|
||||
* fmt::print("Elapsed time: {s:.2f} seconds", fmt::arg("s", 1.23));
|
||||
* fmt::print("The answer is {answer}.", fmt::arg("answer", 42));
|
||||
*/
|
||||
template <typename Char, typename T>
|
||||
inline auto arg(const Char* name, const T& arg) -> detail::named_arg<Char, T> {
|
||||
|
@ -4321,7 +4321,7 @@ inline namespace literals {
|
||||
* **Example**:
|
||||
*
|
||||
* using namespace fmt::literals;
|
||||
* fmt::print("Elapsed time: {s:.2f} seconds", "s"_a=1.23);
|
||||
* fmt::print("The answer is {answer}.", "answer"_a=42);
|
||||
*/
|
||||
# if FMT_USE_NONTYPE_TEMPLATE_ARGS
|
||||
template <detail_exported::fixed_string Str> constexpr auto operator""_a() {
|
||||
|
Loading…
Reference in New Issue
Block a user