mirror of
https://github.com/WerWolv/ImHex-Patterns.git
synced 2026-03-27 23:37:04 -05:00
includes/type: Make type::Formatted actually work as documented
This commit is contained in:
@@ -30,7 +30,7 @@ namespace auto type {
|
|||||||
namespace impl {
|
namespace impl {
|
||||||
|
|
||||||
fn format_formatted(ref auto formatted) {
|
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) {
|
fn transform_formatted(ref auto formatted) {
|
||||||
@@ -39,4 +39,4 @@ namespace auto type {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user