diff options
Diffstat (limited to 'string.c')
-rw-r--r-- | string.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -4729,7 +4729,7 @@ rb_str_sub_bang(int argc, VALUE *argv, VALUE str) * Returns a copy of +str+ with the _first_ occurrence of +pattern+ * replaced by the second argument. The +pattern+ is typically a Regexp; if * given as a String, any regular expression metacharacters it contains will - * be interpreted literally, e.g. <code>'\\\d'</code> will match a backlash + * be interpreted literally, e.g. <code>'\\\d'</code> will match a backslash * followed by 'd', instead of a digit. * * If +replacement+ is a String it will be substituted for the matched text. @@ -4931,7 +4931,7 @@ rb_str_gsub_bang(int argc, VALUE *argv, VALUE str) * <i>pattern</i> substituted for the second argument. The <i>pattern</i> is * typically a <code>Regexp</code>; if given as a <code>String</code>, any * regular expression metacharacters it contains will be interpreted - * literally, e.g. <code>'\\\d'</code> will match a backlash followed by 'd', + * literally, e.g. <code>'\\\d'</code> will match a backslash followed by 'd', * instead of a digit. * * If <i>replacement</i> is a <code>String</code> it will be substituted for |