From 673310ec7bd9057808235226d77d131d71f61ff7 Mon Sep 17 00:00:00 2001 From: usa Date: Sat, 25 Mar 2017 17:03:06 +0000 Subject: merge revision(s) 57780: [Backport #12975] docs for IO#print * io.c: [DOC] split documentation for IO#print into smaller paragraphs, delete duplicate sentence, fix call-seq. Based on a patch by Dario Daic. [ruby-core:78291] [Bug #12975] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_2@58104 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- io.c | 22 ++++++++++++---------- version.h | 2 +- 2 files changed, 13 insertions(+), 11 deletions(-) diff --git a/io.c b/io.c index 1e0ac0bb6d..8f55f95ed0 100644 --- a/io.c +++ b/io.c @@ -6938,18 +6938,20 @@ rb_f_printf(int argc, VALUE *argv) /* * call-seq: - * ios.print() -> nil + * ios.print -> nil * ios.print(obj, ...) -> nil * - * Writes the given object(s) to ios. The stream must be - * opened for writing. If the output field separator ($,) - * is not nil, it will be inserted between each object. - * 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. - * With no argument, prints the contents of the variable $_. - * Returns nil. + * Writes the given object(s) to ios. Returns nil. + * + * The stream must be opened for writing. + * Each given object that isn't a string will be converted by calling + * its to_s method. + * When called without arguments, prints the contents of $_. + * + * If the output field separator ($,) is not nil, + * it is inserted between objects. + * If the output record separator ($\\) is not nil, + * it is appended to the output. * * $stdout.print("This is ", 100, " percent.\n") * diff --git a/version.h b/version.h index 42e3991cae..03c320c7b2 100644 --- a/version.h +++ b/version.h @@ -1,6 +1,6 @@ #define RUBY_VERSION "2.2.7" #define RUBY_RELEASE_DATE "2017-03-26" -#define RUBY_PATCHLEVEL 436 +#define RUBY_PATCHLEVEL 437 #define RUBY_RELEASE_YEAR 2017 #define RUBY_RELEASE_MONTH 3 -- cgit v1.2.3