mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
fix backslash [ci skip]
* string.c (rb_str_tr): [DOC] Escape backslash in String#tr documentation. [Fix GH-1063] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52225 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
77a952d1fb
commit
bcc07ef4d1
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
Fri Oct 23 00:22:20 2015 Josef Simanek <josef.simanek@gmail.com>
|
||||
|
||||
* string.c (rb_str_tr): [DOC] Escape backslash in String#tr
|
||||
documentation. [Fix GH-1063]
|
||||
|
||||
Fri Oct 23 00:19:04 2015 yui-knk <spiketeika@gmail.com>
|
||||
|
||||
* array.c (rb_ary_collect): [DOC] Fix space of code example of
|
||||
|
|
2
string.c
2
string.c
|
@ -6106,7 +6106,7 @@ rb_str_tr_bang(VALUE str, VALUE src, VALUE repl)
|
|||
* "hello".tr('a-y', 'b-z') #=> "ifmmp"
|
||||
* "hello".tr('^aeiou', '*') #=> "*e**o"
|
||||
*
|
||||
* The backslash character <code>\</code> can be used to escape
|
||||
* The backslash character <code>\\</code> can be used to escape
|
||||
* <code>^</code> or <code>-</code> and is otherwise ignored unless it
|
||||
* appears at the end of a range or the end of the +from_str+ or +to_str+:
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue