diff options
author | nagachika <nagachika@ruby-lang.org> | 2022-10-23 19:09:57 +0900 |
---|---|---|
committer | nagachika <nagachika@ruby-lang.org> | 2022-10-23 19:09:57 +0900 |
commit | 5e25ba5d07d42f02485235e3962a4a28373c50e1 (patch) | |
tree | a6d197e8dd2a32b31e4d879872f3053870c97aff /io.c | |
parent | 2c1b1eae7c984c9ff4788d382bc2edcd4ed91ef5 (diff) |
merge revision(s) 280b805d040fa537d5a459b40d4bfa6d49700905: [Backport #18909]
[DOC] Fix documentation for ARGF#readlines
[Bug #18909]
---
io.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
Diffstat (limited to 'io.c')
-rw-r--r-- | io.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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" |