diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-09-15 23:30:46 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-09-15 23:30:46 +0000 |
commit | 4f98aa2bcfff913a112c56f190727213de9173af (patch) | |
tree | b5fb8b144fd2da6f2993006c8be77d5c908b4ede /sprintf.c | |
parent | afd241f7ee13dd228fdfe1b1af87b33c4d96d46a (diff) | |
download | ruby-4f98aa2bcfff913a112c56f190727213de9173af.tar.gz |
* sprintf.c (rb_f_sprintf): fix rdoc. pointed out by Tomoyuki
Chikanaga at [ruby-core:32395], and a patch from Daniel
Bovensiepen at [ruby-core:32403].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29269 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'sprintf.c')
-rw-r--r-- | sprintf.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -425,9 +425,9 @@ get_hash(volatile VALUE *hash, int argc, const VALUE *argv) * %<name>s style uses format style, but %{name} style doesn't. * * Exapmles: - * sprintf("%<foo>d : %<bar>f" % { :foo => 1, :bar => 2 }) + * sprintf("%<foo>d : %<bar>f", { :foo => 1, :bar => 2 }) * #=> 1 : 2.000000 - * sprintf("%{foo}f" % { :foo => 1 }) + * sprintf("%{foo}f", { :foo => 1 }) * # => "1f" */ |