Fix -vet warning for fmt.printf("%10s")
This commit is contained in:
1 parent
a6ff48a5de
commit
a229f9825b
1 file changed
+1
-1
+1
-1
@@ -899,7 +899,7 @@ fmt_string :: proc(fi: ^Info, s: string, verb: rune) {
|
|||||||
case 's', 'v':
|
case 's', 'v':
|
||||||
strings.write_string(fi.buf, s);
|
strings.write_string(fi.buf, s);
|
||||||
if fi.width_set && len(s) < fi.width {
|
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, ' ');
|
strings.write_byte(fi.buf, ' ');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user