summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
authorPeter Zhu <peter@peterzhu.ca>2022-07-14 16:45:03 -0400
committerPeter Zhu <peter@peterzhu.ca>2022-07-15 10:30:50 -0400
commit280b805d040fa537d5a459b40d4bfa6d49700905 (patch)
tree69a3cd9f7484eb2734b0a0d5fc4bc6e3f1356396 /io.c
parentc53439294e390595c88c6f3094021ffc7c0147e1 (diff)
[DOC] Fix documentation for ARGF#readlines
[Bug #18909]
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/6137
Diffstat (limited to 'io.c')
-rw-r--r--io.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/io.c b/io.c
index 3275550643..650ea5e377 100644
--- a/io.c
+++ b/io.c
@@ -10102,16 +10102,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"