Fix -vet warning for fmt.printf("%10s")

This commit is contained in:
gingerBill
2020-06-12 23:13:26 +01:00
parent a6ff48a5de
commit a229f9825b
+1 -1
View File
@@ -899,7 +899,7 @@ fmt_string :: proc(fi: ^Info, s: string, verb: rune) {
case 's', 'v':
strings.write_string(fi.buf, s);
if fi.width_set && len(s) < fi.width {
for i in 0..<fi.width - len(s) {
for _ in 0..<fi.width - len(s) {
strings.write_byte(fi.buf, ' ');
}
}