Skip to content

Commit ec57fb0

Browse files
committed
prefer uppercase
1 parent 8d8f495 commit ec57fb0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

crabdis-core/src/ascii_map.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ impl<T: AsRef<str> + ?Sized> Hash for AsciiKey<T> {
3232
#[inline]
3333
fn hash<H: Hasher>(&self, state: &mut H) {
3434
for byte in self.0.as_ref().bytes() {
35-
state.write_u8(byte.to_ascii_lowercase());
35+
state.write_u8(byte.to_ascii_uppercase());
3636
}
3737
// Hash the length to distinguish "a" from "aa" etc.
3838
state.write_usize(self.0.as_ref().len());

0 commit comments

Comments
 (0)