Skip to content

Commit

Permalink
Merge pull request #361 from psiphiorg/patch-2
Browse files Browse the repository at this point in the history
Fix example in text
  • Loading branch information
dylanbeattie authored Dec 10, 2024
2 parents 0ea7d4d + 598b6ef commit 4bb26da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion codewithrockstar.com/docs/03-variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ Poetic numbers are indicated by the `like` and `so` keywords:

Assignment using `is` will trigger poetic number parsing if the right-hand side of the `is` expression does **not** start with a keyword or literal; see [assignment using `is`](#assignment-using-is) for more about how this works.

Words of 10 or more letters are counted modulo 10, so you can use 10-letter words for `0`, 11 letters for `1` and 12 letters for `2`. Hyphens `-` are counted as letters, so `demon-haunted` is treated as a 12-letter word. Apostrophes are **not** counted, so `nothing` counts as 7 but `nothin'` counts as 6. A poetic number counts every word until the end of the current statement (indicated by a newline or punctuation `.!?;`) If you need a poetic number with a decimal point, use an ellipsis `...` or the Unicode equivalent U+2026 `` as the decimal.
Words of 10 or more letters are counted modulo 10, so you can use 10-letter words for `0`, 11 letters for `1` and 12 letters for `2`. Hyphens `-` are counted as letters, so `demon-haunted` is treated as a 13-letter word. Apostrophes are **not** counted, so `nothing` counts as 7 but `nothin'` counts as 6. A poetic number counts every word until the end of the current statement (indicated by a newline or punctuation `.!?;`) If you need a poetic number with a decimal point, use an ellipsis `...` or the Unicode equivalent U+2026 `` as the decimal.

{% rockstar_include poetic-numbers-2.rock %}

Expand Down

0 comments on commit 4bb26da

Please sign in to comment.