Update addr.odin

Fix comment
This commit is contained in:
Jeroen van Rijn
2023-03-04 10:04:55 +01:00
parent d939d6079a
commit 38ea140b3f

View File

@@ -33,7 +33,7 @@ import "core:fmt"
The port, if present, is required to be a base 10 number in the range 0-65535, inclusive.
If `allow_non_decimal` is true, `aton` is told each component must be decimal and max 255.
If `allow_non_decimal` is false, `aton` is told each component must be decimal and max 255.
*/
parse_ip4_address :: proc(address_and_maybe_port: string, allow_non_decimal := false) -> (addr: IP4_Address, ok: bool) {
res := aton(address_and_maybe_port, .IP4, !allow_non_decimal) or_return