Skip to content

Commit

Permalink
Comment unused
Browse files Browse the repository at this point in the history
  • Loading branch information
lhvy committed Nov 1, 2023
1 parent 843a6ff commit 9d324c4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/cipher.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
use std::str;

pub(crate) fn rot(bytes: &mut [u8], n: u8) {
for byte in bytes {
*byte = byte.wrapping_add(n);
}
}
// pub(crate) fn rot(bytes: &mut [u8], n: u8) {
// for byte in bytes {
// *byte = byte.wrapping_add(n);
// }
// }

pub(crate) fn string_rot(message: &mut str, n: u8) {
alphabetic_rot(unsafe { message.as_bytes_mut() }, n);
Expand Down

0 comments on commit 9d324c4

Please sign in to comment.