From e5a4a1d2ebd94c7a3d5f8cf86456036d58d67125 Mon Sep 17 00:00:00 2001 From: Cody Loyd Date: Mon, 16 Nov 2020 12:25:23 -0600 Subject: [PATCH] Update caesar.js lol i'm dum --- caesar/caesar.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/caesar/caesar.js b/caesar/caesar.js index 7a5088d..c2e926f 100644 --- a/caesar/caesar.js +++ b/caesar/caesar.js @@ -7,9 +7,9 @@ const caesar = function(string, shift) { const codeSet = code => (code < 97 ? 65 : 97); -# this function is just a fancy way of doing % so that it works with negative numbers -# see this link for details: -# https://stackoverflow.com/questions/4467539/javascript-modulo-gives-a-negative-result-for-negative-numbers +// this function is just a fancy way of doing % so that it works with negative numbers +// see this link for details: +// https://stackoverflow.com/questions/4467539/javascript-modulo-gives-a-negative-result-for-negative-numbers const mod = (n, m) => (n % m + m) % m; const shiftChar = (char, shift) => {