diff --git a/io.c b/io.c index cddab6aa00..3bfdfc1d95 100644 --- a/io.c +++ b/io.c @@ -979,7 +979,7 @@ io_write(VALUE io, VALUE str, int nosync) * to a string using to_s. Returns the number of bytes * written. * - * count = $stdout.write( "This is a test\n" ) + * count = $stdout.write("This is a test\n") * puts "That was #{count} bytes of data" * * produces: @@ -5457,8 +5457,8 @@ rb_open_file(int argc, VALUE *argv, VALUE io) * Document-method: IO::open * * call-seq: - * IO.open(fd, mode_string="r" [, opt] ) -> io - * IO.open(fd, mode_string="r" [, opt] ) {|io| block } -> obj + * IO.open(fd, mode_string="r" [, opt]) -> io + * IO.open(fd, mode_string="r" [, opt]) {|io| block } -> obj * * With no associated block, open is a synonym for * IO.new. If the optional code block is given, it will @@ -5536,8 +5536,8 @@ check_pipe_command(VALUE filename_or_command) /* * call-seq: - * open(path [, mode_enc [, perm]] [, opt] ) -> io or nil - * open(path [, mode_enc [, perm]] [, opt] ) {|io| block } -> obj + * open(path [, mode_enc [, perm]] [, opt]) -> io or nil + * open(path [, mode_enc [, perm]] [, opt]) {|io| block } -> obj * * Creates an IO object connected to the given stream, * file, or subprocess. @@ -5937,7 +5937,7 @@ rb_io_init_copy(VALUE dest, VALUE io) /* * call-seq: - * ios.printf(format_string [, obj, ...] ) -> nil + * ios.printf(format_string [, obj, ...]) -> nil * * Formats and writes to ios, converting parameters under * control of the format string. See Kernel#sprintf @@ -5953,8 +5953,8 @@ rb_io_printf(int argc, VALUE *argv, VALUE out) /* * call-seq: - * printf(io, string [, obj ... ] ) -> nil - * printf(string [, obj ... ] ) -> nil + * printf(io, string [, obj ... ]) -> nil + * printf(string [, obj ... ]) -> nil * * Equivalent to: * io.write(sprintf(string, obj, ...)