From c5fa53dcea9c6485a468c7b47eaf586bc36dbd81 Mon Sep 17 00:00:00 2001 From: Nik Date: Sun, 19 Jan 2025 18:13:48 +0100 Subject: [PATCH] includes/type: Make type::Formatted actually work as documented --- includes/type/fmt.pat | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/type/fmt.pat b/includes/type/fmt.pat index b33ac57b..1fad77a1 100644 --- a/includes/type/fmt.pat +++ b/includes/type/fmt.pat @@ -30,7 +30,7 @@ namespace auto type { namespace impl { fn format_formatted(ref auto formatted) { - return std::format(std::format("{{0:{}}}", formatted.FormatString), formatted.value); + return std::format(formatted.FormatString, formatted.value); }; fn transform_formatted(ref auto formatted) { @@ -39,4 +39,4 @@ namespace auto type { } -} \ No newline at end of file +}