aboutsummaryrefslogtreecommitdiffstats
path: root/lib/rdoc/ri
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-06-10 01:20:24 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-06-10 01:20:24 +0000
commit8686ee186197b3aeea3cfbe53014e36fb5ce9eac (patch)
treee35b79c392e64df3d524054b0db4be39bf04dbbd /lib/rdoc/ri
parent3e5f70a8153f8ec955af1c6bc721f2e3ea1814a5 (diff)
downloadruby-8686ee186197b3aeea3cfbe53014e36fb5ce9eac.tar.gz
* lib/getoptlong.rb (GetoptLong#set_options): recieve arguments
as Array. * lib/irb/slex.rb: use Proc#yield. * lib/rdoc/markup/simple_markup/inline.rb: follow the new behavior of String#[]. * lib/rdoc/ri/ri_write.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10239 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rdoc/ri')
-rw-r--r--lib/rdoc/ri/ri_writer.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rdoc/ri/ri_writer.rb b/lib/rdoc/ri/ri_writer.rb
index 78c68e8409..f1042fba79 100644
--- a/lib/rdoc/ri/ri_writer.rb
+++ b/lib/rdoc/ri/ri_writer.rb
@@ -13,7 +13,7 @@ module RI
# by %xx)
def RiWriter.internal_to_external(name)
- name.gsub(/\W/) { sprintf("%%%02x", $&[0]) }
+ name.gsub(/\W/) { "%%%02x" % $&[0].unpack('C') }
end
# And the reverse operation