1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[DOC] Fix broken links to encodings.rdoc

Also prefers class name based references than file name based
references.
This commit is contained in:
Nobuyoshi Nakada 2022-04-02 15:05:03 +09:00
parent 010d92e93d
commit 729b9a8543
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6
3 changed files with 13 additions and 13 deletions

View file

@ -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
{script encoding}[rdoc-ref:encodings.rdoc@Script+Encoding], unlike String.new.
{script encoding}[rdoc-ref:Encoding@Script+Encoding], unlike String.new.
With keyword +encoding+, returns a copy of +str+
with the specified encoding: