stdlib/socket/0/addrinfo.rbs in rbs-3.0.0.dev.2 vs stdlib/socket/0/addrinfo.rbs in rbs-3.0.0.dev.3

- old
+ new

@@ -401,11 +401,11 @@ # <!-- # rdoc-file=ext/socket/raddrinfo.c # - ipv6_linklocal?() # --> - # Returns true for IPv6 link local address (ff80::/10). It returns false + # Returns true for IPv6 link local address (fe80::/10). It returns false # otherwise. # def ipv6_linklocal?: () -> bool # <!-- @@ -472,11 +472,11 @@ # <!-- # rdoc-file=ext/socket/raddrinfo.c # - ipv6_sitelocal?() # --> - # Returns true for IPv6 site local address (ffc0::/10). It returns false + # Returns true for IPv6 site local address (fec0::/10). It returns false # otherwise. # def ipv6_sitelocal?: () -> bool # <!-- @@ -630,22 +630,16 @@ # sockaddr is specified as an array or a string. The array should be compatible # to the value of IPSocket#addr or UNIXSocket#addr. The string should be struct # sockaddr as generated by Socket.sockaddr_in or Socket.unpack_sockaddr_un. # # sockaddr examples: - # - # "AF_INET", 46102, "localhost.localdomain", "127.0.0.1" - # : - # - # "AF_INET6", 42304, "ip6-localhost", "::1" - # : - # - # "AF_UNIX", "/tmp/sock" - # : - # * Socket.sockaddr_in("smtp", "2001:DB8::1") - # * Socket.sockaddr_in(80, "172.18.22.42") - # * Socket.sockaddr_in(80, "www.ruby-lang.org") - # * Socket.sockaddr_un("/tmp/sock") + # * `["AF_INET", 46102, "localhost.localdomain", "127.0.0.1"]` + # * `["AF_INET6", 42304, "ip6-localhost", "::1"]` + # * `["AF_UNIX", "/tmp/sock"]` + # * `Socket.sockaddr_in("smtp", "2001:DB8::1")` + # * `Socket.sockaddr_in(80, "172.18.22.42")` + # * `Socket.sockaddr_in(80, "www.ruby-lang.org")` + # * `Socket.sockaddr_un("/tmp/sock")` # # # In an AF_INET/AF_INET6 sockaddr array, the 4th element, numeric IP address, is # used to construct socket address in the Addrinfo instance. If the 3rd element, # textual host name, is non-nil, it is also recorded but used only for