From 4f98aa2bcfff913a112c56f190727213de9173af Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 15 Sep 2010 23:30:46 +0000 Subject: * 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 --- sprintf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sprintf.c') 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) * %s style uses format style, but %{name} style doesn't. * * Exapmles: - * sprintf("%d : %f" % { :foo => 1, :bar => 2 }) + * sprintf("%d : %f", { :foo => 1, :bar => 2 }) * #=> 1 : 2.000000 - * sprintf("%{foo}f" % { :foo => 1 }) + * sprintf("%{foo}f", { :foo => 1 }) * # => "1f" */ -- cgit v1.2.3