From 2f8f0825b5c9d3190c1a29f7182958648ae886e1 Mon Sep 17 00:00:00 2001 From: Joseph Klix Date: Fri, 8 Sep 2023 15:14:57 -0700 Subject: [PATCH] reflexive vs symmetric in hash_table.h doc (#1056) --- include/aws/common/hash_table.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/aws/common/hash_table.h b/include/aws/common/hash_table.h index f773dcf23..195c9bdff 100644 --- a/include/aws/common/hash_table.h +++ b/include/aws/common/hash_table.h @@ -103,8 +103,9 @@ typedef uint64_t(aws_hash_fn)(const void *key); * keys, but note that the same type is used for a function that compares * two hash table values in aws_hash_table_eq. * - * Equality functions used in a hash table must be reflexive (i.e., a == b if - * and only if b == a), and must be consistent with the hash function in use. + * Equality functions used in a hash table must be be reflexive (a == a), + * symmetric (a == b => b == a), transitive (a == b, b == c => a == c) + * and consistent (result does not change with time). */ typedef bool(aws_hash_callback_eq_fn)(const void *a, const void *b);