Skip to content

Commit be38cb9

Browse files
BurdetteLamarpeterzhu2118
authored andcommitted
[DOC] Tweaks for String#downcase!
1 parent 2899ff1 commit be38cb9

File tree

1 file changed

+4
-11
lines changed

1 file changed

+4
-11
lines changed

string.c

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8146,19 +8146,12 @@ downcase_single(VALUE str)
81468146
* call-seq:
81478147
* downcase!(mapping) -> self or nil
81488148
*
8149-
* Downcases the characters in +self+;
8150-
* returns +self+ if any changes were made, +nil+ otherwise:
8151-
*
8152-
* s = 'Hello World!' # => "Hello World!"
8153-
* s.downcase! # => "hello world!"
8154-
* s # => "hello world!"
8155-
* s.downcase! # => nil
8149+
* Like String#downcase, except that:
81568150
*
8157-
* The casing may be affected by the given +mapping+;
8158-
* see {Case Mapping}[rdoc-ref:case_mapping.rdoc].
8159-
*
8160-
* Related: String#downcase, String#upcase, String#upcase!.
8151+
* - Changes character casings in +self+ (not in a copy of +self+).
8152+
* - Returns +self+ if any changes are made, +nil+ otherwise.
81618153
*
8154+
* Related: See {Modifying}[rdoc-ref:String@Modifying].
81628155
*/
81638156

81648157
static VALUE

0 commit comments

Comments
 (0)