1)Shortened the main sentence for clarification.

2)Corrected the grammar of the example. This example is added in the tests too.
This commit is contained in:
Chris 2021-06-14 14:36:43 +01:00
parent 7902cad62d
commit a946819c11
1 changed files with 5 additions and 2 deletions

View File

@ -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)