From a946819c11f2e826469e58b802790ff69dbfb5f0 Mon Sep 17 00:00:00 2001 From: Chris Date: Mon, 14 Jun 2021 14:36:43 +0100 Subject: [PATCH] 1)Shortened the main sentence for clarification. 2)Corrected the grammar of the example. This example is added in the tests too. --- subjects/rot14/README.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/subjects/rot14/README.md b/subjects/rot14/README.md index 61700061..c18aa671 100644 --- a/subjects/rot14/README.md +++ b/subjects/rot14/README.md @@ -2,7 +2,10 @@ ### Instructions -Write a function `rot14` that returns the `string` within the parameter transformed into a `rot14 string`, that replaces a letter with the 14th letter after it, in the alphabet. +Write a function `rot14` that returns the `string` within the parameter transformed into a `rot14 string`. +Each letter will be replaced by the letter 14 spots ahead in the alphabetical order. + +- 'z' becomes 'n' and 'Z' becomes 'N'. The case of the letter stays the same. ### Expected function @@ -25,7 +28,7 @@ import ( ) func main() { - result := piscine.Rot14("Hello How are You") + result := piscine.Rot14("Hello! How are You?") for _, r := range result { z01.PrintRune(r)