aboutsummaryrefslogtreecommitdiff
path: root/core/path/filepath
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2023-08-08 14:56:12 +0100
committergingerBill <bill@gingerbill.org>2023-08-08 14:56:12 +0100
commit49ab935ae9268264fe40177690292ea890f6a7e3 (patch)
treea39862556944b3637c2f1c3f9737a94bb0d37491 /core/path/filepath
parent939bf4bb5dd2c94f0e67d3193becf56ec9c7abf1 (diff)
Disallow `for in` in favour of `for _ in`
Diffstat (limited to 'core/path/filepath')
-rw-r--r--core/path/filepath/path.odin2
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