From be38cb92d59cf654906ab2d32235348b97a606a4 Mon Sep 17 00:00:00 2001 From: BurdetteLamar Date: Mon, 14 Jul 2025 12:03:05 -0500 Subject: [DOC] Tweaks for String#downcase! --- string.c | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) (limited to 'string.c') 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 -- cgit v1.2.3