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

ruby-reference-manual:2547

From: 5 5 <redmine@r...>
Date: Mon, 27 Dec 2010 11:23:22 +0900
Subject: [ruby-reference-manual:2547] [ReferenceManualRenewalProject-Bug#4213][Open] String#slice(regexp, nth = 0) のサンプルに重複

Bug #4213: String#slice(regexp, nth = 0) のサンプルに重複
http://redmine.ruby-lang.org/issues/show/4213

起票者: 5 5
ステータス: Open, 優先度: Low
カテゴリ: doc
ruby_version: 1.8, 1.9

String#slice(regexp, nth = 0) の実行例に同じものが二度出てきます。

Index: refm/api/src/_builtin/String
===================================================================
--- refm/api/src/_builtin/String	(revision 4458)
+++ refm/api/src/_builtin/String	(working copy)
@@ -549,9 +549,6 @@
    p "foobar"[/bar/]  # => "bar"
    p $~.begin(0)      # => 3
 
-   p "foobar"[/bar/]   # => "bar"
-   p $~.begin(0)       # => 3
-
 #@since 1.8.0
    p "def getcnt(line)"[ /def\s+(\w+)/, 1 ]   # => "getcnt"
 #@end


----------------------------------------
http://redmine.ruby-lang.org

--
ML: ruby-reference-manual@m...
Info: http://QuickML.com/

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

->    2547 2010-12-27 03:23 [redmine@r...        ] [ReferenceManualRenewalProject-Bug#4213][Open] String#slice(regexp, nth = 0) のサンプルに重複
      2548 2010-12-28 06:48 ┗[redmine@r...        ] [ReferenceManualRenewalProject-Bug#4213][Closed] String#slice(regexp, nth = 0) のサンプルに重複