Browse Source

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

gingerBill 5 years ago
parent
commit
a229f9825b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      core/fmt/fmt.odin

+ 1 - 1
core/fmt/fmt.odin

@@ -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, ' ');
 			}
 			}
 		}
 		}