aboutsummaryrefslogtreecommitdiffstats
path: root/sprintf.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-09-15 23:30:46 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-09-15 23:30:46 +0000
commit4f98aa2bcfff913a112c56f190727213de9173af (patch)
treeb5fb8b144fd2da6f2993006c8be77d5c908b4ede /sprintf.c
parentafd241f7ee13dd228fdfe1b1af87b33c4d96d46a (diff)
downloadruby-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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sprintf.c b/sprintf.c
index a9e560b48e..21509eafdd 100644
--- a/sprintf.c
+++ b/sprintf.c
@@ -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"
*/