Skip to content

Commit

Permalink
Add example output to Caesar cipher impl docs
Browse files Browse the repository at this point in the history
  • Loading branch information
CuriousCorrelation authored and alexfertel committed Sep 2, 2021
1 parent 3436dd9 commit 3d865f8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ciphers/caesar.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
/// ```
/// # use rust_algorithms::ciphers::caesar;
/// let encoded = caesar("one sheep two sheep", 3);
/// assert_eq!(encoded, "rqh vkhhs wzr vkhhs")
/// ```
pub fn caesar(cipher: &str, shift: u8) -> String {
cipher
Expand Down

0 comments on commit 3d865f8

Please sign in to comment.