diff options
Diffstat (limited to 'sprintf.c')
-rw-r--r-- | sprintf.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -422,13 +422,13 @@ get_hash(volatile VALUE *hash, int argc, const VALUE *argv) * sprintf("%u", -123) #=> "-123" * * For more complex formatting, Ruby supports a reference by name. - * %<name>s style uses format style, but ${name} style doesn't. + * %<name>s style uses format style, but %{name} style doesn't. * * Exapmles: * sprintf("%<foo>d : %<bar>f" % { :foo => 1, :bar => 2 }) * #=> 1 : 2.000000 - * sprintf("%d %{foo}" % { :foo => 'bar' }) - * # => "%d bar" + * sprintf("%{foo}f" % { :foo => 1 }) + * # => "1f" */ VALUE |