[前][次][番号順一覧][スレッド一覧]

ruby-changes:72563

From: Peter <ko1@a...>
Date: Fri, 15 Jul 2022 23:31:00 +0900 (JST)
Subject: [ruby-changes:72563] 280b805d04 (master): [DOC] Fix documentation for ARGF#readlines

https://git.ruby-lang.org/ruby.git/commit/?id=280b805d04

From 280b805d040fa537d5a459b40d4bfa6d49700905 Mon Sep 17 00:00:00 2001
From: Peter Zhu <peter@p...>
Date: Thu, 14 Jul 2022 16:45:03 -0400
Subject: [DOC] Fix documentation for ARGF#readlines

[Bug #18909]
---
 io.c | 8 ++++----
 1 file 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) https://github.com/ruby/ruby/blob/trunk/io.c#L10102
 
 /*
  *  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"
-- 
cgit v1.2.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]