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 ===. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57056 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
9f3798549d
commit
c95388a58d
2
string.c
2
string.c
@ -3046,7 +3046,7 @@ str_eql(const VALUE str1, const VALUE str2)
|
||||
* 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.
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user