aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorMarshall Lochbaum <mwlochbaum@gmail.com>2020-09-01 08:01:17 -0400
committerMarshall Lochbaum <mwlochbaum@gmail.com>2020-09-01 08:01:17 -0400
commit58c4c664ccb627102481c7bcb457e0f84a74d938 (patch)
tree1fdd1920595071b17f91e7a51eaf77e35f01018d /doc
parent85bd95ab4f2a40ccb1de042eaca64b9383a901ae (diff)
Fix editing error: recurse instead of using previous function
Diffstat (limited to 'doc')
-rw-r--r--doc/block.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/block.md b/doc/block.md
index c75ea321..d4bdd71b 100644
--- a/doc/block.md
+++ b/doc/block.md
@@ -87,7 +87,7 @@ If a block is assigned a name after it is created, this name can be used for rec
This is somewhat unsatisfying because it is external to the function being defined, even though it doesn't depend on outside information. Instead, the special name `π•Š` can be used to refer to the function it appears in. This allows anonymous recursive functions to be defined.
- { 𝕩 Γ— (0⊸<)β—Ά1β€ΏFact 𝕩-1 } 7
+ { 𝕩 Γ— (0⊸<)β—Ά1β€Ώπ•Š 𝕩-1 } 7
For modifiers, `𝕣` refers to the containing modifier. `π•Š` makes the modifier a deferred modifier like `𝕨` and `𝕩` do, and refers to the derived function. For example, this tail-recursive factorial function uses the operand to accumulate a result, a task that is usually done with a second `factorial_helper` function in elementary Scheme.