summaryrefslogtreecommitdiff
diff options
authorBurdetteLamar <[email protected]>2025-07-14 12:03:05 -0500
committerPeter Zhu <[email protected]>2025-07-15 14:13:17 -0400
commitbe38cb92d59cf654906ab2d32235348b97a606a4 (patch)
treea4869eb20ee0d56c8d401befbd6b2e9bf9fe92c9
parent2899ff172c80ec0ba4797f9d6d566e1b92000ae9 (diff)
[DOC] Tweaks for String#downcase!HEADmaster
-rw-r--r--string.c15
1 files changed, 4 insertions, 11 deletions
diff --git a/string.c b/string.c
index 07a5339e39..39508c939d 100644
--- a/string.c
+++ b/string.c
@@ -8146,19 +8146,12 @@ downcase_single(VALUE str)
* call-seq:
* downcase!(mapping) -> self or nil
*
- * Downcases the characters in +self+;
- * returns +self+ if any changes were made, +nil+ otherwise:
- *
- * s = 'Hello World!' # => "Hello World!"
- * s.downcase! # => "hello world!"
- * s # => "hello world!"
- * s.downcase! # => nil
+ * Like String#downcase, except that:
*
- * The casing may be affected by the given +mapping+;
- * see {Case Mapping}[rdoc-ref:case_mapping.rdoc].
- *
- * Related: String#downcase, String#upcase, String#upcase!.
+ * - Changes character casings in +self+ (not in a copy of +self+).
+ * - Returns +self+ if any changes are made, +nil+ otherwise.
*
+ * Related: See {Modifying}[rdoc-ref:String@Modifying].
*/
static VALUE
close