ruby-changes:44946
From: kazu <ko1@a...>
Date: Thu, 8 Dec 2016 00:30:06 +0900 (JST)
Subject: [ruby-changes:44946] kazu:r57018 (trunk): fix typo in `IO#write_nonblock` example [ci skip]
kazu 2016-12-08 00:30:01 +0900 (Thu, 08 Dec 2016) New Revision: 57018 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=57018 Log: fix typo in `IO#write_nonblock` example [ci skip] This example explains when writing a value greater than 65536, so the value specify must be greater than 65536. This seems to be wrong in cee7f69 Patch by: Yuji Yaginuma <yuuji.yaginuma@g...> [Fix GH-1496] Modified files: trunk/prelude.rb Index: prelude.rb =================================================================== --- prelude.rb (revision 57017) +++ prelude.rb (revision 57018) @@ -99,7 +99,7 @@ class IO https://github.com/ruby/ruby/blob/trunk/prelude.rb#L99 # # # write_nonblock writes only 65536 bytes and return 65536. # # (The pipe size is 65536 bytes on this environment.) - # s = "a" #100000 + # s = "a" * 100000 # p w.write_nonblock(s) #=> 65536 # # # write_nonblock cannot write a byte and raise EWOULDBLOCK (EAGAIN). -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/