aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorMarshall Lochbaum <mwlochbaum@gmail.com>2020-12-03 15:03:33 -0500
committerMarshall Lochbaum <mwlochbaum@gmail.com>2020-12-03 15:05:47 -0500
commit334ad7af480957c5d263a9bd4648bb2aafcebdc8 (patch)
treeacf1688be98437718ae480b86653301b150c0248 /docs
parent9e952ffd79f704ffd8b0e327a7c5afbaead7a213 (diff)
Change outdated : to ⇐ for import aliases in syntax doc
Diffstat (limited to 'docs')
-rw-r--r--docs/doc/syntax.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/doc/syntax.html b/docs/doc/syntax.html
index 88e006fc..b77b5660 100644
--- a/docs/doc/syntax.html
+++ b/docs/doc/syntax.html
@@ -151,7 +151,7 @@
</pre>
<h3 id="exports">Exports</h3>
<p>The double arrow <code><span class='Gets'>⇐</span></code> is used to export variables from an immediate block or file. It can only be used in these contexts, and not in function or modifier blocks. There are two ways to export variables. First, <code><span class='Gets'>←</span></code> in the variable definition can be replaced with <code><span class='Gets'>⇐</span></code> to export the variable as it's defined. Second, an export statement consisting of an assignment target followed by <code><span class='Gets'>⇐</span></code> with nothing to the right exports the variables in the assignment target and does nothing else. Export statements can be placed anywhere in the relevant program or body, including before declaration or on the last line, and a given variable can be exported any number of times.</p>
-<pre><span class='Bracket'>⟨</span><span class='Value'>a:alias</span><span class='Separator'>,</span> <span class='Value'>b</span><span class='Separator'>,</span> <span class='Value'>c:c0</span><span class='Ligature'>‿</span><span class='Value'>c1</span><span class='Separator'>,</span> <span class='Value'>b:b2</span><span class='Bracket'>⟩</span><span class='Gets'>←</span><span class='Brace'>{</span>
+<pre><span class='Bracket'>⟨</span><span class='Value'>alias</span><span class='Gets'>⇐</span><span class='Value'>a</span><span class='Separator'>,</span> <span class='Value'>b</span><span class='Separator'>,</span> <span class='Value'>c0</span><span class='Ligature'>‿</span><span class='Value'>c1</span><span class='Gets'>⇐</span><span class='Value'>c</span><span class='Separator'>,</span> <span class='Value'>b2</span><span class='Gets'>⇐</span><span class='Value'>b</span><span class='Bracket'>⟩</span><span class='Gets'>←</span><span class='Brace'>{</span>
<span class='Value'>b</span><span class='Ligature'>‿</span><span class='Value'>c</span><span class='Gets'>⇐</span> <span class='Comment'># Non-definition exports can go anywhere
</span> <span class='Value'>a</span><span class='Gets'>⇐</span><span class='Number'>2</span> <span class='Comment'># Define and export
</span> <span class='Value'>b</span><span class='Gets'>←</span><span class='Number'>1</span><span class='Function'>+</span><span class='Value'>a</span>