[DOC] Tweaks for String#delete_prefix!

This commit is contained in:
BurdetteLamar 2025-07-12 17:41:17 -05:00 committed by Peter Zhu
parent d38bb4ad1c
commit 55dd2022fd
2 changed files with 4 additions and 2 deletions

View file

@ -427,6 +427,7 @@
# - #slice!, #[]=: Removes a substring determined by a given index, start/length, range, regexp, or substring.
# - #squeeze!: Removes contiguous duplicate characters; returns +self+.
# - #delete!: Removes characters as determined by the intersection of substring arguments.
# - #delete_prefix!: Removes leading prefix; 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.
# - #strip!: Removes leading and trailing whitespace; returns +self+ if any changes, +nil+ otherwise.