summaryrefslogtreecommitdiff
path: root/sprintf.c
diff options
context:
space:
mode:
Diffstat (limited to 'sprintf.c')
-rw-r--r--sprintf.c4
1 files changed, 2 insertions, 2 deletions
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"
*/