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

ruby-changes:34400

From: nobu <ko1@a...>
Date: Sat, 21 Jun 2014 07:09:59 +0900 (JST)
Subject: [ruby-changes:34400] nobu:r46481 (trunk): encoding.c: fix rdoc [ci skip]

nobu	2014-06-21 07:09:55 +0900 (Sat, 21 Jun 2014)

  New Revision: 46481

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

  Log:
    encoding.c: fix rdoc [ci skip]
    
    * encoding.c (enc_find): [DOC] never accepted a symbol.
      [ruby-dev:48308] [Bug #9966]

  Modified files:
    trunk/ChangeLog
    trunk/encoding.c
Index: encoding.c
===================================================================
--- encoding.c	(revision 46480)
+++ encoding.c	(revision 46481)
@@ -1166,13 +1166,11 @@ enc_list(VALUE klass) https://github.com/ruby/ruby/blob/trunk/encoding.c#L1166
 /*
  * call-seq:
  *   Encoding.find(string) -> enc
- *   Encoding.find(symbol) -> enc
  *
  * Search the encoding with specified <i>name</i>.
- * <i>name</i> should be a string or symbol.
+ * <i>name</i> should be a string.
  *
  *   Encoding.find("US-ASCII")  #=> #<Encoding:US-ASCII>
- *   Encoding.find(:Shift_JIS)  #=> #<Encoding:Shift_JIS>
  *
  * Names which this method accept are encoding names and aliases
  * including following special aliases
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 46480)
+++ ChangeLog	(revision 46481)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Sat Jun 21 07:06:13 2014  Nobuyoshi Nakada  <nobu@r...>
+
+	* encoding.c (enc_find): [DOC] never accepted a symbol.
+	  [ruby-dev:48308] [Bug #9966]
+
 Fri Jun 20 17:15:43 2014  Koichi Sasada  <ko1@a...>
 
 	* test/lib/tracepointchecker.rb: add to check TracePoint healthiness.

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

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