[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:
Peter Zhu 2025-07-24 16:06:49 -04:00
parent d0bb17e079
commit 7913aff2b3

View file

@ -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.
* *