瀏覽代碼

Update addr.odin

Fix comment
Jeroen van Rijn 2 年之前
父節點
當前提交
38ea140b3f
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      core/net/addr.odin

+ 1 - 1
core/net/addr.odin

@@ -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