mirror of
https://github.com/Ed94/Odin.git
synced 2026-07-29 02:40:05 +00:00
Use or_break and or_continue where appropriate in the core library
This commit is contained in:
@@ -392,9 +392,8 @@ rel :: proc(base_path, target_path: string, allocator := context.allocator) -> (
|
||||
for ti < tl && target[ti] != SEPARATOR {
|
||||
ti += 1
|
||||
}
|
||||
if !strings.equal_fold(target[t0:ti], base[b0:bi]) {
|
||||
break
|
||||
}
|
||||
strings.equal_fold(target[t0:ti], base[b0:bi]) or_break
|
||||
|
||||
if bi < bl {
|
||||
bi += 1
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user