mirror of
https://github.com/ruby/ruby.git
synced 2026-01-26 20:19:19 +00:00
[DOC] Fix return value of rb_str_hash_cmp
rb_str_hash_cmp returns 0 if the two strings are identical and 1 if they are different.
This commit is contained in:
parent
d0bb17e079
commit
7913aff2b3
@ -970,8 +970,8 @@ st_index_t rb_str_hash(VALUE str);
|
||||
*
|
||||
* @param[in] str1 A string.
|
||||
* @param[in] str2 Another string.
|
||||
* @retval 1 They have identical contents, length, and encodings.
|
||||
* @retval 0 Otherwise.
|
||||
* @retval 0 They have identical contents, length, and encodings.
|
||||
* @retval 1 Otherwise.
|
||||
* @pre Both objects must not be any arbitrary objects except
|
||||
* ::RString.
|
||||
*
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user