diff options
author | Burdette Lamar <BurdetteLamar@Yahoo.com> | 2022-04-01 20:41:04 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-01 20:41:04 -0500 |
commit | 81741690a0cc6a244821cf4c80030afa2bbc2565 (patch) | |
tree | 6a70f32e26557ff86ac2f9018c548b37a4708b4a /doc/string | |
parent | 6068da8937d7e4358943f95e7450dae7179a7763 (diff) | |
download | ruby-81741690a0cc6a244821cf4c80030afa2bbc2565.tar.gz |
[DOC] Main doc for encodings moved from encoding.c to doc/encodings.rdoc (#5748)
Main doc for encodings moved from encoding.c to doc/encodings.rdoc
Diffstat (limited to 'doc/string')
-rw-r--r-- | doc/string/new.rdoc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/string/new.rdoc b/doc/string/new.rdoc index 3eee2b82e0..867f9c9c21 100644 --- a/doc/string/new.rdoc +++ b/doc/string/new.rdoc @@ -12,7 +12,7 @@ with the same encoding as +string+: s.encoding # => #<Encoding:UTF-8> Literal strings like <tt>""</tt> or here-documents always use -Encoding@Script+encoding, unlike String.new. +{script encoding}[rdoc-ref:encodings.rdoc@Script+Encoding], unlike String.new. With keyword +encoding+, returns a copy of +str+ with the specified encoding: |