From 66a4a0cfbf5407ad0c9e4b3cf6a829df1b8ae181 Mon Sep 17 00:00:00 2001 From: davhojt Date: Tue, 31 May 2022 05:32:21 +0300 Subject: [PATCH] docs(pig_latin) correct grammar --- subjects/pig_latin/README.md | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/subjects/pig_latin/README.md b/subjects/pig_latin/README.md index 6055ea60..10a58875 100644 --- a/subjects/pig_latin/README.md +++ b/subjects/pig_latin/README.md @@ -2,18 +2,12 @@ ### Instructions -Write a **function** that transforms a string passed as argument in its `Pig Latin` version. - -The rules used by Pig Latin are the following: +Create a **function** which transforms the string passed as an argument into Pig Latin: - If a word begins with a vowel, just add "ay" to the end. -- If it begins with a consonant, then we take all consonants before the first vowel and we put them at the end of the word and add "ay" at the end. +- If it begins with a consonant, then we take all consonants before the first vowel, move them to the end of the word, and then add "ay" at the end. - If a word starts with a consonant followed by "qu", move it to the end of the word, and then add an "ay" at the end. -### Notions - -- [patterns](https://doc.rust-lang.org/book/ch18-00-patterns.html) - ### Expected functions ```rust @@ -51,3 +45,7 @@ enonxay airchay $ ``` + +### Notions + +- [patterns](https://doc.rust-lang.org/book/ch18-00-patterns.html)