perf: Replaced fmt.aprintf/fmt.tprintf calls with fmt.sbprintf.

This commit is contained in:
Spencer Brower
2026-08-04 15:35:30 -04:00
parent 695548bada
commit 380c324623
3 changed files with 32 additions and 39 deletions
+1 -1
View File
@@ -227,7 +227,7 @@ format_error :: proc(
}
strings.write_string(&sb, "--> ")
strings.write_string(&sb, reset)
strings.write_string(&sb, fmt.tprintf("%s:%d:%d\n", path, line, col))
fmt.sbprintf(&sb, "%s:%d:%d\n", path, line, col)
// Top gutter line.
write_gutter(&sb, width, faint, reset)