Skip to content

Commit 90c2a01

Browse files
authored
Update hash.h
1 parent 9ad60cf commit 90c2a01

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

include/maglev/util/hash.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ struct maglev_int_hash {
3838
}
3939
};
4040

41-
// std::hash for integer got self, which may cause bad performance in maglev,
42-
// so use maglev_int_hash as default.
41+
// The std::hash for integers directly returns the input value itself, which
42+
// may cause bad performance in Maglev, so use maglev_int_hash as default.
4343
template <typename T>
4444
using def_hash_t = typename std::conditional<
4545
std::is_integral<T>::value,

0 commit comments

Comments
 (0)