mirror of
https://github.com/odin-lang/Odin.git
synced 2026-02-13 06:43:35 +00:00
Update addr.odin
Fix comment
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user