Skip to content

Commit

Permalink
Correct grammar
Browse files Browse the repository at this point in the history
  • Loading branch information
skaunov authored and tfpk committed Apr 23, 2023
1 parent 29c2371 commit cbbfbce
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion exercises/06_repetition/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion exercises/08_nested_repetition/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions po/macrokata.pot
Original file line number Diff line number Diff line change
Expand Up @@ -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`."
Expand Down Expand Up @@ -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 ""

Expand Down
4 changes: 2 additions & 2 deletions po/zh.po
Original file line number Diff line number Diff line change
Expand Up @@ -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`."
Expand Down Expand Up @@ -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 ""

Expand Down

0 comments on commit cbbfbce

Please sign in to comment.