diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-10-21 02:34:19 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-10-21 02:34:19 +0000 |
commit | 3ba353fc1a096375594a534f41862cc13bf07b52 (patch) | |
tree | 92d3055d921cf180a19fc71f2cd4b01163816c75 | |
parent | 6f22fc6b70b989245d6ee4d825ea1d9677779b11 (diff) | |
download | ruby-3ba353fc1a096375594a534f41862cc13bf07b52.tar.gz |
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
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | string.c | 4 |
2 files changed, 7 insertions, 2 deletions
@@ -1,3 +1,8 @@ +Fri Oct 21 11:34:17 2016 Pascal Schmid <Lechindianer@users.noreply.github.com> + + * string.c (rb_str_sub, rb_str_gsub): [DOC] 'backlash' should read + 'backslash'. [Fix GH-1461] + Thu Oct 20 17:02:56 2016 SHIBATA Hiroshi <hsbt@ruby-lang.org> * lib/uri/common.rb: added documentation for deprecated method. @@ -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 |