소스 검색

Keep -vet happy

gingerBill 4 년 전
부모
커밋
4d580ed693
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      examples/demo/demo.odin

+ 1 - 1
examples/demo/demo.odin

@@ -1868,7 +1868,7 @@ soa_struct_layout :: proc() {
 
 		// iterate over the #soa slice
 		for v, i in s {
-			fmt.println(v); // exactly the same as s[i]
+			fmt.println(v, i); // exactly the same as s[i]
 			// NOTE: 'v' is NOT a temporary value but has a specialized addressing mode
 			// which means that when accessing v.a etc, it does the correct transformation
 			// internally: