mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
[DOC] Tweaks for String#delete_suffix! (#13872)
This commit is contained in:
parent
07a3ab53a2
commit
64d4e7727e
2 changed files with 4 additions and 2 deletions
|
@ -428,6 +428,7 @@
|
||||||
# - #squeeze!: Removes contiguous duplicate characters; returns +self+.
|
# - #squeeze!: Removes contiguous duplicate characters; returns +self+.
|
||||||
# - #delete!: Removes characters as determined by the intersection of substring arguments.
|
# - #delete!: Removes characters as determined by the intersection of substring arguments.
|
||||||
# - #delete_prefix!: Removes leading prefix; returns +self+ if any changes, +nil+ otherwise.
|
# - #delete_prefix!: Removes leading prefix; returns +self+ if any changes, +nil+ otherwise.
|
||||||
|
# - #delete_suffix!: Removes trailing suffix; returns +self+ if any changes, +nil+ otherwise.
|
||||||
# - #lstrip!: Removes leading whitespace; returns +self+ if any changes, +nil+ otherwise.
|
# - #lstrip!: Removes leading whitespace; returns +self+ if any changes, +nil+ otherwise.
|
||||||
# - #rstrip!: Removes trailing whitespace; returns +self+ if any changes, +nil+ otherwise.
|
# - #rstrip!: Removes trailing whitespace; returns +self+ if any changes, +nil+ otherwise.
|
||||||
# - #strip!: Removes leading and trailing whitespace; returns +self+ if any changes, +nil+ otherwise.
|
# - #strip!: Removes leading and trailing whitespace; returns +self+ if any changes, +nil+ otherwise.
|
||||||
|
|
5
string.c
5
string.c
|
@ -11376,9 +11376,10 @@ deleted_suffix_length(VALUE str, VALUE suffix)
|
||||||
* call-seq:
|
* call-seq:
|
||||||
* delete_suffix!(suffix) -> self or nil
|
* delete_suffix!(suffix) -> self or nil
|
||||||
*
|
*
|
||||||
* Like String#delete_suffix, except that +self+ is modified in place.
|
* Like String#delete_suffix, except that +self+ is modified in place;
|
||||||
* Returns +self+ if the suffix is removed, +nil+ otherwise.
|
* returns +self+ if the suffix is removed, +nil+ otherwise.
|
||||||
*
|
*
|
||||||
|
* Related: see {Modifying}[rdoc-ref:String@Modifying].
|
||||||
*/
|
*/
|
||||||
|
|
||||||
static VALUE
|
static VALUE
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue