Issue #3829 has been updated by Daniel Bovensiepen.
Tomoyuki Chikanaga is complelty right! Also the previously existing example had the same issue:
Index: sprintf.c
===================================================================
--- sprintf.c (revision 29266)
+++ sprintf.c (working copy)
@@ -425,9 +425,9 @@ get_hash(volatile VALUE *hash, int argc, const VAL
* %<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"
*/
----------------------------------------
http://redmine.ruby-lang.org/issues/show/3829
----------------------------------------
http://redmine.ruby-lang.org