summaryrefslogtreecommitdiff
path: root/doc/encodings.rdoc
diff options
context:
space:
mode:
Diffstat (limited to 'doc/encodings.rdoc')
-rw-r--r--doc/encodings.rdoc2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/encodings.rdoc b/doc/encodings.rdoc
index 97c0d22616..d85099cdbc 100644
--- a/doc/encodings.rdoc
+++ b/doc/encodings.rdoc
@@ -419,7 +419,7 @@ These keyword-value pairs specify encoding options:
hash = {"\u3042" => 'xyzzy'}
hash.default = 'XYZZY'
- s.encode('ASCII', fallback: h) # => "xyzzyfooXYZZY"
+ s.encode('ASCII', fallback: hash) # => "xyzzyfooXYZZY"
def (fallback = "U+%.4X").escape(x)
self % x.unpack("U")