aboutsummaryrefslogtreecommitdiffstats
path: root/prelude.rb
diff options
context:
space:
mode:
authorkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-12-07 15:30:01 +0000
committerkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-12-07 15:30:01 +0000
commit8358ed9fa6a7916c0493e5b749af810cfdb83849 (patch)
tree7dadaaea837461b3eb84555516189ae7d0a6f377 /prelude.rb
parentedb6f9694c1cfc624614f9975615f02a58f867e1 (diff)
downloadruby-8358ed9fa6a7916c0493e5b749af810cfdb83849.tar.gz
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@gmail.com> [Fix GH-1496] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57018 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'prelude.rb')
-rw-r--r--prelude.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/prelude.rb b/prelude.rb
index f9bb7451f8..740aba5b79 100644
--- a/prelude.rb
+++ b/prelude.rb
@@ -99,7 +99,7 @@ class IO
#
# # 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).