diff options
| author | Colin Davidson <colrdavidson@gmail.com> | 2023-03-02 06:56:54 -0800 |
|---|---|---|
| committer | Colin Davidson <colrdavidson@gmail.com> | 2023-03-02 06:56:54 -0800 |
| commit | 38d58e818c171761e91ce81a480cca2955fe12bf (patch) | |
| tree | 5fba5b060956a54d2ffb5a0be131870a9c442609 /core/net/url.odin | |
| parent | 090723179bb965ee879b7f75f33963a1ec9d4fac (diff) | |
ripple bill-suggestions
Diffstat (limited to 'core/net/url.odin')
| -rw-r--r-- | core/net/url.odin | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/net/url.odin b/core/net/url.odin index 980fb5e90..c1d46033f 100644 --- a/core/net/url.odin +++ b/core/net/url.odin @@ -25,7 +25,7 @@ split_url :: proc(url: string, allocator := context.allocator) -> (scheme, host, s := url i := strings.last_index(s, "://") - if i != -1 { + if i >= 0 { scheme = s[:i] s = s[i+3:] } |