[core]: Remove do keyword from the core library
This commit is contained in:
1 parent
59675949da
commit
270348b112
9 files changed
+273
-237
No files matched your search
+3
-1
@@ -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)
|
||||
|
||||
|
||||
Reference in new issue
Block a user