From e721a7aec77754f42a44e05d115adb7ae676197c Mon Sep 17 00:00:00 2001 From: Yuki Tsujimoto <46666464+ytjmt@users.noreply.github.com> Date: Sun, 22 Oct 2023 18:47:22 +0900 Subject: [PATCH] [DOC] Update documentation for typical implementation of hash --- hash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 *