Skip to content

Commit

Permalink
fix typo in control flow tutorial
Browse files Browse the repository at this point in the history
  • Loading branch information
kaikalii committed Nov 20, 2023
1 parent c804402 commit d808ff1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion site/src/tutorial.rs
Original file line number Diff line number Diff line change
Expand Up @@ -958,7 +958,7 @@ splitArray([1, 2, 3, 7, 2, 4, 5])"</code>
<Editor example="(3|5) 1"/>
<p>"Switch functions can have as many branches as you want, and they can also be nested."</p>
<Editor example="≡((×10|+1|(∘|¯)=2.) ◿3.) [2 9 4 0 8 3]"/>
<p>"Each branch can have a signature specified. For the overall switch function to have a valid signature, all branches must either change the height of the stack by the same amount "<em>"or"</em>"return the same number of outputs."</p>
<p>"Each branch can have a signature specified. For the overall switch function to have a valid signature, all branches must either change the height of the stack by the same amount "<em>"or"</em>" return the same number of outputs."</p>
<Editor example="f ← (|2 ×||3.2 ⊃(++)×)\n[f 0 2 3 4]\n[f 1 2 3 4]"/>
<p>"Signatures in switch functions are a bit messy, so try to avoid them when possible."</p>
<p>"Because a second "<code>"|"</code>" immediately after another indicates a signature, branches that do nothing must contain "<Prim prim=Identity/>"."</p>
Expand Down

0 comments on commit d808ff1

Please sign in to comment.