diff --git a/io.c b/io.c index 7f7b02c37b..24533a6e89 100644 --- a/io.c +++ b/io.c @@ -3516,6 +3516,7 @@ rb_io_reopen(argc, argv, file) return file; } +/* :nodoc: */ static VALUE rb_io_init_copy(dest, io) VALUE dest, io; @@ -3632,7 +3633,7 @@ rb_f_printf(argc, argv) * ios.print(obj, ...) => nil * * Writes the given object(s) to ios. The stream must be - * opened for writing. If the output record separator ($\) + * opened for writing. If the output record separator ($\\) * is not nil, it will be appended to the output. If no * arguments are given, prints $_. Objects that aren't * strings will be converted by calling their to_s method. @@ -3688,7 +3689,7 @@ rb_io_print(argc, argv, out) * Prints each object in turn to $stdout. If the output * field separator ($,) is not +nil+, its * contents will appear between each field. If the output record - * separator ($\) is not +nil+, it will be + * separator ($\\) is not +nil+, it will be * appended to the output. If no arguments are given, prints * $_. Objects that aren't strings will be converted by * calling their to_s method.