Skip to content

Commit

Permalink
Minor grammar fix in String#chomp documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
eric-unc authored and marcandre committed Dec 30, 2020
1 parent 15c129d commit 11b8bb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion string.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down

0 comments on commit 11b8bb9

Please sign in to comment.