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:
parent
15c129d087
commit
11b8bb99e6
Notes:
git
2020-12-30 15:25:29 +09:00
1 changed files with 1 additions and 1 deletions
2
string.c
2
string.c
|
@ -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.
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue