Skip to content

Commit 5af56ec

Browse files
committed
Use byte instead of i
The identifier `i` is predominantly used for indexing an array but we are using it as a place holder for the iterated value of an array that is then printed. The identifier `byte` is more descriptive. Done in preparation for adding similar code to the `ecdh` module.
1 parent 45c0447 commit 5af56ec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/secret.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,8 @@ impl fmt::Debug for DisplaySecret {
101101

102102
impl fmt::Display for DisplaySecret {
103103
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
104-
for i in &self.secret {
105-
write!(f, "{:02x}", i)?;
104+
for byte in &self.secret {
105+
write!(f, "{:02x}", byte)?;
106106
}
107107
Ok(())
108108
}

0 commit comments

Comments
 (0)