From 46b29e4238683e8f8ce4c0b8cf4a3b671a531275 Mon Sep 17 00:00:00 2001 From: nobu Date: Fri, 21 Oct 2016 02:34:19 +0000 Subject: Fixed typo [ci skip] * string.c (rb_str_sub, rb_str_gsub): [DOC] 'backlash' should read 'backslash'. [Fix GH-1461] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56460 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- string.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'string.c') diff --git a/string.c b/string.c index 56f1432bde..91ee0fc749 100644 --- a/string.c +++ b/string.c @@ -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. '\\\d' will match a backlash + * be interpreted literally, e.g. '\\\d' 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) * pattern substituted for 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. '\\\d' will match a backlash followed by 'd', + * literally, e.g. '\\\d' will match a backslash followed by 'd', * instead of a digit. * * If replacement is a String it will be substituted for -- cgit v1.2.3