diff options
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | sprintf.c | 4 |
2 files changed, 8 insertions, 2 deletions
@@ -1,3 +1,9 @@ +Thu Sep 16 08:30:28 2010 Nobuyoshi Nakada <nobu@ruby-lang.org> + + * 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]. + Thu Sep 16 08:27:36 2010 Nobuyoshi Nakada <nobu@ruby-lang.org> * ext/etc/extconf.rb: use expanded sysconfdir with empty DESTDIR. @@ -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" */ |