mirror of
https://github.com/odin-lang/Odin.git
synced 2026-06-06 10:44:06 +00:00
Fix for -vet
This commit is contained in:
@@ -1104,8 +1104,8 @@ fmt_value :: proc(fi: ^Info, v: any, verb: rune) {
|
||||
}
|
||||
|
||||
if is_soa {
|
||||
indent := fi.indent; defer fi.indent -= 1;
|
||||
fi.indent += 1;
|
||||
defer fi.indent -= 1;
|
||||
|
||||
base_type_name: string;
|
||||
if v, ok := b.soa_base_type.variant.(runtime.Type_Info_Named); ok {
|
||||
@@ -1342,8 +1342,8 @@ fmt_value :: proc(fi: ^Info, v: any, verb: rune) {
|
||||
if hash do strings.write_byte(fi.buf, '\n');
|
||||
|
||||
if is_soa {
|
||||
indent := fi.indent; defer fi.indent -= 1;
|
||||
fi.indent += 1;
|
||||
defer fi.indent -= 1;
|
||||
|
||||
base_type_name: string;
|
||||
if v, ok := info.soa_base_type.variant.(runtime.Type_Info_Named); ok {
|
||||
|
||||
@@ -1269,6 +1269,14 @@ range_statements_with_multiple_return_values :: proc() {
|
||||
fmt.println(val, idx);
|
||||
}
|
||||
}
|
||||
{
|
||||
it := make_my_iterator(data);
|
||||
for {
|
||||
val, _, cond := my_iterator(&it);
|
||||
if !cond do break;
|
||||
fmt.println(val);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
main :: proc() {
|
||||
|
||||
Reference in New Issue
Block a user