aboutsummaryrefslogtreecommitdiffstats
path: root/hash.c
diff options
context:
space:
mode:
authorYuki Tsujimoto <46666464+ytjmt@users.noreply.github.com>2023-10-22 18:47:22 +0900
committerGitHub <noreply@github.com>2023-10-22 09:47:22 +0000
commite721a7aec77754f42a44e05d115adb7ae676197c (patch)
tree04a9ac93313b08dbd61657d2f51f5d6e95c75c6f /hash.c
parent7578bc35f9b6a2e88f43a5c48dc1b209fc972eaa (diff)
downloadruby-e721a7aec77754f42a44e05d115adb7ae676197c.tar.gz
[DOC] Update documentation for typical implementation of hash
Diffstat (limited to 'hash.c')
-rw-r--r--hash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hash.c b/hash.c
index f870bf386a..2b4c8d3400 100644
--- a/hash.c
+++ b/hash.c
@@ -6827,7 +6827,7 @@ static const rb_data_type_t env_data_type = {
* alias eql? ==
*
* def hash
- * @author.hash ^ @title.hash # XOR
+ * [self.class, @author, @title].hash
* end
* end
*