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

ruby-changes:44983

From: nobu <ko1@a...>
Date: Mon, 12 Dec 2016 16:12:12 +0900 (JST)
Subject: [ruby-changes:44983] nobu:r57056 (trunk): string.c: fix method name in rdoc [ci skip]

nobu	2016-12-12 16:12:07 +0900 (Mon, 12 Dec 2016)

  New Revision: 57056

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

  Log:
    string.c: fix method name in rdoc [ci skip]
    
    * string.c (rb_str_equal): [DOC] fix fallback method name. the
      peer's == method will be used, not ===.

  Modified files:
    trunk/string.c
Index: string.c
===================================================================
--- string.c	(revision 57055)
+++ string.c	(revision 57056)
@@ -3046,7 +3046,7 @@ str_eql(const VALUE str1, const VALUE st https://github.com/ruby/ruby/blob/trunk/string.c#L3046
  *  Returns whether +str+ == +obj+, similar to Object#==.
  *
  *  If +obj+ is not an instance of String but responds to +to_str+, then the
- *  two strings are compared using case equality Object#===.
+ *  two strings are compared using <code>obj.==</code>.
  *
  *  Otherwise, returns similarly to String#eql?, comparing length and content.
  */

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

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