diff options
| author | gingerBill <bill@gingerbill.org> | 2023-08-08 14:56:12 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2023-08-08 14:56:12 +0100 |
| commit | 49ab935ae9268264fe40177690292ea890f6a7e3 (patch) | |
| tree | a39862556944b3637c2f1c3f9737a94bb0d37491 /core/path/filepath | |
| parent | 939bf4bb5dd2c94f0e67d3193becf56ec9c7abf1 (diff) | |
Disallow `for in` in favour of `for _ in`
Diffstat (limited to 'core/path/filepath')
| -rw-r--r-- | core/path/filepath/path.odin | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/path/filepath/path.odin b/core/path/filepath/path.odin index 370de59a2..fa47e483d 100644 --- a/core/path/filepath/path.odin +++ b/core/path/filepath/path.odin @@ -416,7 +416,7 @@ rel :: proc(base_path, target_path: string, allocator := context.allocator) -> ( } buf := make([]byte, size) n := copy(buf, "..") - for in 0..<seps { + for _ in 0..<seps { buf[n] = SEPARATOR copy(buf[n+1:], "..") n += 3 |