[前][次][番号順一覧][スレッド一覧]

ruby-changes:40144

From: nobu <ko1@a...>
Date: Fri, 23 Oct 2015 00:22:47 +0900 (JST)
Subject: [ruby-changes:40144] nobu:r52225 (trunk): fix backslash [ci skip]

nobu	2015-10-23 00:22:22 +0900 (Fri, 23 Oct 2015)

  New Revision: 52225

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=52225

  Log:
    fix backslash [ci skip]
    
    * string.c (rb_str_tr): [DOC] Escape backslash in String#tr
      documentation.  [Fix GH-1063]

  Modified files:
    trunk/ChangeLog
    trunk/string.c
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 52224)
+++ ChangeLog	(revision 52225)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Fri Oct 23 00:22:20 2015  Josef Simanek  <josef.simanek@g...>
+
+	* 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@g...>
 
 	* array.c (rb_ary_collect): [DOC] Fix space of code example of
Index: string.c
===================================================================
--- string.c	(revision 52224)
+++ string.c	(revision 52225)
@@ -6106,7 +6106,7 @@ rb_str_tr_bang(VALUE str, VALUE src, VAL https://github.com/ruby/ruby/blob/trunk/string.c#L6106
  *     "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+:
  *

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]