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

Commits on Nov 21, 2024

  1. Caesar_cipher code example showed right shift, not left.

    A left shift of 5 for the string "What a string" should yield the value "Rcvo v nomdib!". The output in the example shows a right shift of 5.
    
    At the very least, the example from Wikipedia shows a left shift of three, "D->A" and "E->B" while the code example shows a right shift. The examples should be consistent on the page.
    JeffreyMPrice authored Nov 21, 2024
    Configuration menu
    Copy the full SHA
    7372952 View commit details
    Browse the repository at this point in the history
  2. Add instructions for right shift

    * Add to project instructions using a right shift
    * Add to quick tips that Wikipedia shows a left shift
    * Fix lower case ceaser
    JeffreyMPrice authored Nov 21, 2024
    Configuration menu
    Copy the full SHA
    deb4f9c View commit details
    Browse the repository at this point in the history