Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ruby: Project: Caesar Cipher: Fix Ruby Caesar Cipher code example #29107

Merged
merged 2 commits into from
Nov 25, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion ruby/basic_ruby_projects/project_caesar_cipher.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Harvard's CS50 class has a [video about the Caesar cipher](https://www.youtube.c

<div class="lesson-content__panel" markdown="1">

Implement a caesar cipher that takes in a string and the shift factor and then outputs the modified string:
Implement a Caesar cipher that takes in a string and the shift factor and then outputs the modified string using a right shift:

```ruby
> caesar_cipher("What a string!", 5)
Expand All @@ -30,5 +30,6 @@ Harvard's CS50 class has a [video about the Caesar cipher](https://www.youtube.c
- You will need to remember how to convert a string into a number.
- Don't forget to wrap from `z` to `a`.
- Don't forget to keep the same case.
- The Wikipedia quote discusses a Caesar cipher using a left shift.

</div>