Skip to content

Commit

Permalink
includes/type: Make type::Formatted actually work as documented
Browse files Browse the repository at this point in the history
  • Loading branch information
WerWolv authored Jan 19, 2025
1 parent 9a6cbdf commit c5fa53d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions includes/type/fmt.pat
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -39,4 +39,4 @@ namespace auto type {

}

}
}

0 comments on commit c5fa53d

Please sign in to comment.