ruby-changes:31523
From: zzak <ko1@a...>
Date: Sat, 9 Nov 2013 15:01:10 +0900 (JST)
Subject: [ruby-changes:31523] zzak:r43602 (trunk): * io.c: [DOC] ARGF.gets may return nil [Bug #9029] patch by znz
zzak 2013-11-09 15:01:04 +0900 (Sat, 09 Nov 2013) New Revision: 43602 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=43602 Log: * io.c: [DOC] ARGF.gets may return nil [Bug #9029] patch by znz Modified files: trunk/ChangeLog trunk/io.c Index: ChangeLog =================================================================== --- ChangeLog (revision 43601) +++ ChangeLog (revision 43602) @@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Sat Nov 9 15:00:16 2013 Zachary Scott <e@z...> + + * io.c: [DOC] ARGF.gets may return nil [Bug #9029] patch by znz + Sat Nov 9 14:54:52 2013 Zachary Scott <e@z...> * lib/rss/*: [DOC] document various constants @steveklabnik [Bug #8812] Index: io.c =================================================================== --- io.c (revision 43601) +++ io.c (revision 43602) @@ -7965,16 +7965,16 @@ rb_f_gets(int argc, VALUE *argv, VALUE r https://github.com/ruby/ruby/blob/trunk/io.c#L7965 /* * call-seq: - * ARGF.gets(sep=$/) -> string - * ARGF.gets(limit) -> string - * ARGF.gets(sep, limit) -> string + * ARGF.gets(sep=$/) -> string or nil + * ARGF.gets(limit) -> string or nil + * ARGF.gets(sep, limit) -> string or nil * * Returns the next line from the current file in +ARGF+. * * By default lines are assumed to be separated by +$/+; to use a different * character as a separator, supply it as a +String+ for the _sep_ argument. * - * The optional _limit_ argument specifies how many characters of each line + * The optional _limit_ argument specifies how many characters of each line * to return. By default all characters are returned. * */ -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/