diff options
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: |