aboutsummaryrefslogtreecommitdiff
path: root/doc/quick.md
diff options
context:
space:
mode:
authorMarshall Lochbaum <mwlochbaum@gmail.com>2022-11-18 22:10:59 -0500
committerMarshall Lochbaum <mwlochbaum@gmail.com>2022-11-18 22:10:59 -0500
commite7f09d54e76d61709763dcaf1b3081812d88fe46 (patch)
treedb3a336c207bbfd34bf09e8e2f1ea2ccfa12e7e2 /doc/quick.md
parente42111e4dfc2fac9f99b053fd3cd65cd6e11259f (diff)
Move introduction of the optional-function rule to main header section, not multiple bodies
Diffstat (limited to 'doc/quick.md')
-rw-r--r--doc/quick.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/quick.md b/doc/quick.md
index fecee2a9..afb89519 100644
--- a/doc/quick.md
+++ b/doc/quick.md
@@ -230,7 +230,7 @@ Going left to right, `GV‿GS` indicates [destructuring assignment](expression.m
The list is split across two lines, using newline as a [separator](token.md#separators) instead of `,` or `⋄`. Its second function `{𝕩.spl}` is simpler: it takes a namespace `𝕩` and gets the field named `spl`.
-The first function is more complicated, because the argument namespace might or might not have an `str` field. The list-like notation `⟨s⇐str⟩` is another example of destructuring assignment, but this time it destructures a namespace, using an [alias](namespace.md#imports) to give it a short name. This header leaves off the function name `𝕊`, using a [special rule](block.md#case-headers) for one-argument functions. Arguments in headers are very similar to assignment targets, but if the destructuring doesn't match it tries the next body (if there is one) instead of giving an error. So if the argument is a namespace with an `str` field then `{⟨s⇐str⟩:s;""}` returns that field's value, and otherwise it returns `""`.
+The first function is more complicated, because the argument namespace might or might not have an `str` field. The list-like notation `⟨s⇐str⟩` is another example of destructuring assignment, but this time it destructures a namespace, using an [alias](namespace.md#imports) to give it a short name. This header leaves off the function name `𝕊`, using a [special rule](block.md#special-names-in-headers) for one-argument functions. Arguments in headers are very similar to assignment targets, but if the destructuring doesn't match it tries the next body (if there is one) instead of giving an error. So if the argument is a namespace with an `str` field then `{⟨s⇐str⟩:s;""}` returns that field's value, and otherwise it returns `""`.
### Assembly