mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02: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
1 changed files with 2 additions and 2 deletions
|
@ -970,8 +970,8 @@ st_index_t rb_str_hash(VALUE str);
|
||||||
*
|
*
|
||||||
* @param[in] str1 A string.
|
* @param[in] str1 A string.
|
||||||
* @param[in] str2 Another string.
|
* @param[in] str2 Another string.
|
||||||
* @retval 1 They have identical contents, length, and encodings.
|
* @retval 0 They have identical contents, length, and encodings.
|
||||||
* @retval 0 Otherwise.
|
* @retval 1 Otherwise.
|
||||||
* @pre Both objects must not be any arbitrary objects except
|
* @pre Both objects must not be any arbitrary objects except
|
||||||
* ::RString.
|
* ::RString.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue