Skip to content

Commit 1aedb76

Browse files
committed
rotational-cipher: Changed key type from u8 to i8 in the rotate function template
1 parent d8abff1 commit 1aedb76

File tree

1 file changed

+1
-1
lines changed
  • exercises/rotational-cipher/src

1 file changed

+1
-1
lines changed

exercises/rotational-cipher/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
pub fn rotate(input: &str, key: u8) -> String {
1+
pub fn rotate(input: &str, key: i8) -> String {
22
unimplemented!(
33
"How would input text '{}' transform when every letter is shifted using key '{}'?",
44
input,

0 commit comments

Comments
 (0)