mirror of https://github.com/01-edu/public.git
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:
parent
7902cad62d
commit
a946819c11
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue