diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | io.c | 8 |
2 files changed, 8 insertions, 4 deletions
@@ -1,3 +1,7 @@ +Sat Nov 9 15:00:16 2013 Zachary Scott <e@zzak.io> + + * io.c: [DOC] ARGF.gets may return nil [Bug #9029] patch by znz + Sat Nov 9 14:54:52 2013 Zachary Scott <e@zzak.io> * lib/rss/*: [DOC] document various constants @steveklabnik [Bug #8812] @@ -7965,16 +7965,16 @@ rb_f_gets(int argc, VALUE *argv, VALUE recv) /* * 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. * */ |