diff --git a/string.c b/string.c
index 743fe79423..5110f45baa 100644
--- a/string.c
+++ b/string.c
@@ -6002,12 +6002,13 @@ rb_str_inspect(VALUE str)
* str.dump -> new_str
*
* Produces a quoted version of +str+ with all non-printing characters replaced
- * by \xnn notation and all special characters escaped.
+ * by \xHH notation and all special characters escaped.
*
* This method can be used for round-trip: if the resulting +new_str+ is
* eval'ed, it will produce the original string.
*
- * "hello \n ''".dump #=> "\"hello \\n ''\""
+ * "hello \n ''".dump #=> "\"hello \\n ''\""
+ * "\f\x00\xff\\\"".dump #=> "\"\\f\\x00\\xFF\\\\\\\"\""
*/
VALUE