From cbbfbce4eacd0c0cf77fdfef446774c89fab3182 Mon Sep 17 00:00:00 2001 From: skaunov Date: Thu, 20 Apr 2023 12:00:48 +0300 Subject: [PATCH] Correct grammar --- exercises/06_repetition/README.md | 2 +- exercises/08_nested_repetition/README.md | 2 +- po/macrokata.pot | 4 ++-- po/zh.po | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/exercises/06_repetition/README.md b/exercises/06_repetition/README.md index 101b912..7877ee8 100644 --- a/exercises/06_repetition/README.md +++ b/exercises/06_repetition/README.md @@ -64,7 +64,7 @@ To break that down: - `$(` means that we're starting a repetition. - Inside the brackets, `the $my_literal:literal` is the pattern we're matching. We'll match the exact text "the", and then a literal token. - The `)` means that we're done describing the pattern to match. - - The `and` is optional, but it is the "separator": a token you can use to seperate multiple repetitions. Commonly it's `,` to comma-separate things. + - The `and` is optional, but it is the "separator": a token you can use to separate multiple repetitions. Commonly it's `,` to comma-separate things. - Here, we use `+`, which means the repetition must happen at least once. `*` would have worked just as well if we were okay with an empty `Vec`. What's now left is to use the matched values. To do this, the rule would be something like: diff --git a/exercises/08_nested_repetition/README.md b/exercises/08_nested_repetition/README.md index cbc1ff4..05e05d4 100644 --- a/exercises/08_nested_repetition/README.md +++ b/exercises/08_nested_repetition/README.md @@ -2,7 +2,7 @@ In this exercise, you will need to use nested repetition. That's where you write a repetition inside another one, for example, `( $( $( $val:expr ),+ );+ )` -would let you specify at least one value, but seperate them with either `;` and `,`. +would let you specify at least one value, but separate them with either `;` and `,`. The only oddity about nested repetition is that you must ensure that you use metavariables in a context where it's clear you're only referring to one of them. diff --git a/po/macrokata.pot b/po/macrokata.pot index 4d4525d..733778d 100644 --- a/po/macrokata.pot +++ b/po/macrokata.pot @@ -1062,7 +1062,7 @@ msgid "" "matching. We'll match the exact text \"the\", and then a literal token.\n" " - The `)` means that we're done describing the pattern to match.\n" " - The `and` is optional, but it is the \"separator\": a token you can use " -"to seperate multiple repetitions. Commonly it's `,` to comma-separate " +"to separate multiple repetitions. Commonly it's `,` to comma-separate " "things.\n" " - Here, we use `+`, which means the repetition must happen at least once. " "`*` would have worked just as well if we were okay with an empty `Vec`." @@ -1290,7 +1290,7 @@ msgid "" "In this exercise, you will need to use nested repetition. That's where you\n" "write a repetition inside another one, for example, `( $( $( $val:expr ),+ " ");+ )`\n" -"would let you specify at least one value, but seperate them with either `;` " +"would let you specify at least one value, but separate them with either `;` " "and `,`." msgstr "" diff --git a/po/zh.po b/po/zh.po index 034cfc4..759a01e 100644 --- a/po/zh.po +++ b/po/zh.po @@ -1065,7 +1065,7 @@ msgid "" "matching. We'll match the exact text \"the\", and then a literal token.\n" " - The `)` means that we're done describing the pattern to match.\n" " - The `and` is optional, but it is the \"separator\": a token you can use " -"to seperate multiple repetitions. Commonly it's `,` to comma-separate " +"to separate multiple repetitions. Commonly it's `,` to comma-separate " "things.\n" " - Here, we use `+`, which means the repetition must happen at least once. " "`*` would have worked just as well if we were okay with an empty `Vec`." @@ -1293,7 +1293,7 @@ msgid "" "In this exercise, you will need to use nested repetition. That's where you\n" "write a repetition inside another one, for example, `( $( $( $val:expr ),+ );" "+ )`\n" -"would let you specify at least one value, but seperate them with either `;` " +"would let you specify at least one value, but separate them with either `;` " "and `,`." msgstr ""