1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Minor grammar fix in String#chomp documentation

This commit is contained in:
Eric Schneider 2020-12-29 23:37:04 -05:00 committed by Marc-André Lafortune
parent 15c129d087
commit 11b8bb99e6
Notes: git 2020-12-30 15:25:29 +09:00

View file

@ -9232,7 +9232,7 @@ rb_str_chomp_bang(int argc, VALUE *argv, VALUE str)
* Returns a new String with the given record separator removed
* from the end of <i>str</i> (if present). If <code>$/</code> has not been
* changed from the default Ruby record separator, then <code>chomp</code> also
* removes carriage return characters (that is it will remove <code>\n</code>,
* removes carriage return characters (that is, it will remove <code>\n</code>,
* <code>\r</code>, and <code>\r\n</code>). If <code>$/</code> is an empty string,
* it will remove all trailing newlines from the string.
*