mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
[DOC] Tweaks for String#chop
This commit is contained in:
parent
3baed2ea38
commit
6c77a0c62b
1 changed files with 5 additions and 3 deletions
8
string.c
8
string.c
|
@ -10131,10 +10131,12 @@ chopped_length(VALUE str)
|
|||
* call-seq:
|
||||
* chop! -> self or nil
|
||||
*
|
||||
* Like String#chop, but modifies +self+ in place;
|
||||
* returns +nil+ if +self+ is empty, +self+ otherwise.
|
||||
* Like String#chop, except that:
|
||||
*
|
||||
* Related: String#chomp!.
|
||||
* - Removes trailing characters from +self+ (not from a copy of +self+).
|
||||
* - Returns +self+ if any characters are removed, +nil+ otherwise.
|
||||
*
|
||||
* Related: see {Modifying}[rdoc-ref:String@Modifying].
|
||||
*/
|
||||
|
||||
static VALUE
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue