TheOdinProject / curriculum

The open curriculum for learning web development
https://www.theodinproject.com/
Other
10.12k stars 13.56k forks source link

Ruby: Caesar Cipher ruby output shows a right shift, not left shift #29106

Open JeffreyMPrice opened 21 hours ago

JeffreyMPrice commented 21 hours ago

Checks

Describe your suggestion

In the Wikipedia example on the page it mentions that a Caesar Cipher uses a left shift.

The example from the project page which shows a right shift of 5:

  > caesar_cipher("What a string!", 5)
  => "Bmfy f xywnsl!"

I propose:

Ruby / Rails

Lesson Url

https://www.theodinproject.com/lessons/ruby-caesar-cipher

(Optional) Discord Name

No response

(Optional) Additional Comments

No response

JeffreyMPrice commented 11 hours ago

I update the issue to reflect a better fix suggest by @JoshDevHub