diff options
author | David RodrÃguez <[email protected]> | 2025-01-10 23:36:51 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2025-01-10 17:36:51 -0500 |
commit | cde065c32c8db34eaf2c6b8646a2d4a34e20a3ec (patch) | |
tree | 6cefebdf2bc184d4de940f1b36d7740de10af72e | |
parent | 50c2c4bddee5a2c5edc0d9fc0f635befdfc4bacc (diff) |
Clarify documentation for encoding of `String.new` without arguments
[Bug #21025]
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/12548
Merged-By: XrXr
-rw-r--r-- | doc/encodings.rdoc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/doc/encodings.rdoc b/doc/encodings.rdoc index 7ec097c516..06b1f669a0 100644 --- a/doc/encodings.rdoc +++ b/doc/encodings.rdoc @@ -144,6 +144,7 @@ see {Script Encoding}[rdoc-ref:encodings.rdoc@Script+Encoding]. The default encoding for a string created with method String.new is: +- For no argument, ASCII-8BIT. - For a \String object argument, the encoding of that string. - For a string literal, the script encoding; see {Script Encoding}[rdoc-ref:encodings.rdoc@Script+Encoding]. |