[前][次][番号順一覧][スレッド一覧]

ruby-changes:44426

From: rhe <ko1@a...>
Date: Thu, 27 Oct 2016 14:58:42 +0900 (JST)
Subject: [ruby-changes:44426] rhe:r56499 (trunk): socket: fix rdoc of UDPSocket#recvfrom_nonblock

rhe	2016-10-27 14:58:35 +0900 (Thu, 27 Oct 2016)

  New Revision: 56499

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=56499

  Log:
    socket: fix rdoc of UDPSocket#recvfrom_nonblock
    
    * ext/socket/lib/socket.rb (UDPSocket#recvfrom_nonblock): [DOC] Remove
      a false statement "If _maxlen_ is omitted, its default value is
      65536." maxlen, the first parameter, cannot be omitted as the method
      signature indicates. This hasn't changed ever since it was first
      implemented.

  Modified files:
    trunk/ChangeLog
    trunk/ext/socket/lib/socket.rb
Index: ext/socket/lib/socket.rb
===================================================================
--- ext/socket/lib/socket.rb	(revision 56498)
+++ ext/socket/lib/socket.rb	(revision 56499)
@@ -1215,7 +1215,6 @@ class UDPSocket < IPSocket https://github.com/ruby/ruby/blob/trunk/ext/socket/lib/socket.rb#L1215
   #
   # Receives up to _maxlen_ bytes from +udpsocket+ using recvfrom(2) after
   # O_NONBLOCK is set for the underlying file descriptor.
-  # If _maxlen_ is omitted, its default value is 65536.
   # _flags_ is zero or more of the +MSG_+ options.
   # The first element of the results, _mesg_, is the data received.
   # The second element, _sender_inet_addr_, is an array to represent the sender address.
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 56498)
+++ ChangeLog	(revision 56499)
@@ -1,3 +1,11 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Thu Oct 27 14:57:33 2016  Kazuki Yamaguchi  <k@r...>
+
+	* ext/socket/lib/socket.rb (UDPSocket#recvfrom_nonblock): [DOC] Remove
+	  a false statement "If _maxlen_ is omitted, its default value is
+	  65536." maxlen, the first parameter, cannot be omitted as the method
+	  signature indicates. This hasn't changed ever since it was first
+	  implemented.
+
 Thu Oct 27 09:42:09 2016  Nobuyoshi Nakada  <nobu@r...>
 
 	* object.c (rb_convert_to_integer): convert a fixable float to a

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]