diff options
author | Nobuyoshi Nakada <[email protected]> | 2022-04-02 15:05:03 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2022-04-02 15:06:12 +0900 |
commit | 729b9a85439d5cec7b73f8c0c41c4377e6ce304c (patch) | |
tree | c9052c42ea7ceeb11b39f9bcfc0bb4f5495b29f8 /doc/string | |
parent | 010d92e93d68b47ce5971b1270b9830a057f39de (diff) |
[DOC] Fix broken links to encodings.rdoc
Also prefers class name based references than file name based
references.
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 867f9c9c21..b8dac00856 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 -{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: |