We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a8d97e9 commit fcade22Copy full SHA for fcade22
src/middleware/basetypes.rs
@@ -236,13 +236,13 @@ impl fmt::Display for Hash {
236
if f.alternate() {
237
write!(f, "0x{}", self.encode_hex::<String>())
238
} else {
239
- // display the lest significant field element in big endian
+ // display the least significant field element in big endian
240
write!(f, "0x…")?;
241
- let v3 = self.0[0].to_canonical_u64();
+ let v0 = self.0[0].to_canonical_u64();
242
for i in (0..4).rev() {
243
- write!(f, "{:02x}", (v3 >> (i * 8)) & 0xff)?;
+ write!(f, "{:02x}", (v0 >> (i * 8)) & 0xff)?;
244
}
245
- write!(f, "")
+ Ok(())
246
247
248
0 commit comments