[core]: Remove do keyword from the core library

This commit is contained in:
flysand7
2023-11-11 20:36:38 +11:00
parent 59675949da
commit 270348b112
9 changed files with 273 additions and 237 deletions
+3 -1
View File
@@ -462,7 +462,9 @@ split_port :: proc(endpoint_str: string) -> (addr_or_host: string, port: int, ok
// Joins an address or hostname with a port.
join_port :: proc(address_or_host: string, port: int, allocator := context.allocator) -> string {
addr_or_host, _, ok := split_port(address_or_host)
if !ok do return addr_or_host
if !ok {
return addr_or_host
}
b := strings.builder_make(allocator)