mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
1 changed files with 1 additions and 1 deletions
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…
Add table
Reference in a new issue