includes/type: Make type::Formatted actually work as documented

This commit is contained in:
Nik
2025-01-19 18:13:48 +01:00
committed by GitHub
parent 9a6cbdfe28
commit c5fa53dcea

View File

@@ -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 {
}
}
}