merge revision(s) 280b805d04: [Backport #18909]

[DOC] Fix documentation for ARGF#readlines

	[Bug #18909]
	---
	 io.c | 8 ++++----
	 1 file changed, 4 insertions(+), 4 deletions(-)
This commit is contained in:
nagachika 2022-10-23 19:09:57 +09:00
parent 2c1b1eae7c
commit 5e25ba5d07
2 changed files with 6 additions and 6 deletions

8
io.c
View file

@ -9518,16 +9518,16 @@ rb_f_readlines(int argc, VALUE *argv, VALUE recv)
/*
* call-seq:
* ARGF.readlines(sep=$/) -> array
* ARGF.readlines(sep = $/) -> array
* ARGF.readlines(limit) -> array
* ARGF.readlines(sep, limit) -> array
*
* ARGF.to_a(sep=$/) -> array
* ARGF.to_a(sep = $/) -> array
* ARGF.to_a(limit) -> array
* ARGF.to_a(sep, limit) -> array
*
* Reads +ARGF+'s current file in its entirety, returning an +Array+ of its
* lines, one line per element. Lines are assumed to be separated by _sep_.
* Reads each file in +ARGF+ in its entirety, returning an +Array+ containing
* lines from the files. Lines are assumed to be separated by _sep_.
*
* lines = ARGF.readlines
* lines[0] #=> "This is line one\n"

View file

@ -11,11 +11,11 @@
# define RUBY_VERSION_MINOR RUBY_API_VERSION_MINOR
#define RUBY_VERSION_TEENY 3
#define RUBY_RELEASE_DATE RUBY_RELEASE_YEAR_STR"-"RUBY_RELEASE_MONTH_STR"-"RUBY_RELEASE_DAY_STR
#define RUBY_PATCHLEVEL 167
#define RUBY_PATCHLEVEL 168
#define RUBY_RELEASE_YEAR 2022
#define RUBY_RELEASE_MONTH 10
#define RUBY_RELEASE_DAY 22
#define RUBY_RELEASE_DAY 23
#include "ruby/version.h"