summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--sprintf.c4
2 files changed, 8 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 60f30a9a51..99401d28e2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
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"
*/