Skip to content

Commit

Permalink
Fix udp example for udp method on Socket::Addrinfo (#6388)
Browse files Browse the repository at this point in the history
  • Loading branch information
faustinoaq authored and Serdar Dogruyol committed Jul 15, 2018
1 parent a2f4d61 commit 24b860e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/socket/addrinfo.cr
Expand Up @@ -141,7 +141,7 @@ class Socket
#
# Example:
# ```
# addrinfos = Socket::Addrinfo.tcp("example.org", 53)
# addrinfos = Socket::Addrinfo.udp("example.org", 53)
# ```
def self.udp(domain, service, family = Family::UNSPEC, timeout = nil) : Array(Addrinfo)
resolve(domain, service, family, Type::DGRAM, Protocol::UDP)
Expand Down

0 comments on commit 24b860e

Please sign in to comment.