Skip to content

Commit

Permalink
* ext/socket/lib/socket.rb: Doc typos by @vipulnsward [Fixes rubyGH-292]
Browse files Browse the repository at this point in the history
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40431 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
zzak committed Apr 24, 2013
1 parent a796eca commit 562e938
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
4 changes: 4 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
Wed Apr 24 12:54:00 2013 Zachary Scott <zachary@zacharyscott.net>

* ext/socket/lib/socket.rb: Doc typos by @vipulnsward [Fixes GH-292]

Wed Apr 24 12:27:00 2013 Zachary Scott <zachary@zacharyscott.net>

* array.c: Fix documentation for Array#index and #replace aliases
Expand Down
12 changes: 6 additions & 6 deletions ext/socket/lib/socket.rb
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ class << self
# The value of the block is returned.
# The socket is closed when this method returns.
#
# If _port_ is 0, actual port number is choosen dynamically.
# If _port_ is 0, actual port number is chosen dynamically.
# However all sockets in the result has same port number.
#
# # tcp_server_sockets returns two sockets.
Expand All @@ -425,7 +425,7 @@ class << self
# #=> #<Addrinfo: [::]:1296 TCP>
# # #<Addrinfo: 0.0.0.0:1296 TCP>
#
# # IPv6 and IPv4 socket has same port number, 53114, even if it is choosen dynamically.
# # IPv6 and IPv4 socket has same port number, 53114, even if it is chosen dynamically.
# sockets = Socket.tcp_server_sockets(0)
# sockets.each {|s| p s.local_address }
# #=> #<Addrinfo: [::]:53114 TCP>
Expand Down Expand Up @@ -555,8 +555,8 @@ def self.tcp_server_loop(host=nil, port, &b) # :yield: socket, client_addrinfo
# The value of the block is returned.
# The sockets are closed when this method returns.
#
# If _port_ is zero, some port is choosen.
# But the choosen port is used for the all sockets.
# If _port_ is zero, some port is chosen.
# But the chosen port is used for the all sockets.
#
# # UDP/IP echo server
# Socket.udp_server_sockets(0) {|sockets|
Expand Down Expand Up @@ -718,9 +718,9 @@ def self.udp_server_loop(host=nil, port, &b) # :yield: message, message_source

# UDP/IP address information used by Socket.udp_server_loop.
class UDPSource
# +remote_adress+ is an Addrinfo object.
# +remote_address+ is an Addrinfo object.
#
# +local_adress+ is an Addrinfo object.
# +local_address+ is an Addrinfo object.
#
# +reply_proc+ is a Proc used to send reply back to the source.
def initialize(remote_address, local_address, &reply_proc)
Expand Down

0 comments on commit 562e938

Please sign in to comment.