Pass string interpolation.

This commit is contained in:
2023-10-04 08:16:20 +01:00
parent 6f76a5d460
commit bfe4402f0a
2 changed files with 3 additions and 3 deletions

View File

@@ -87,7 +87,7 @@ public static class PrintHex
sb.Append(" ");
for(var i = 0; i < width; i++)
sb.AppendFormat(" {0:X2}", i);
sb.Append($" {i:X2}");
if(color)
sb.Append("\u001b[0m");
@@ -114,7 +114,7 @@ public static class PrintHex
for(var j = 0; j < lastBytes; j++)
{
sb.AppendFormat(" {0:X2}", array[b]);
sb.Append($" {array[b]:X2}");
b++;
}