From: Tomoyuki Chikanaga Date: 2010-09-15T22:49:14+09:00 Subject: [ruby-core:32395] [Ruby 1.9-Bug#3829] [doc] String#% and a hash Issue #3829 has been updated by Tomoyuki Chikanaga. In r29254 documentation for snprintf actually uses String#%. Index: sprintf.c =================================================================== --- sprintf.c (revision 29261) +++ sprintf.c (working copy) @@ -427,7 +427,7 @@ * Exapmles: * sprintf("%d : %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