about summary refs log tree commit diff
path: root/doc/tutorial
diff options
context:
space:
mode:
authorAustin Seipp <as@hacks.yi.org>2012-01-09 19:32:54 -0600
committerBrian Anderson <banderson@mozilla.com>2012-01-09 19:27:06 -0800
commit55edb4a04f63214d90853fcd4137fc53efe4ec27 (patch)
treed5ca8f3e97885c58e0b5adf06d4f6eee10a4ad4b /doc/tutorial
parent070b1c833375f9b76645e1254c31074e96116619 (diff)
Replace all occurrences of 'when' with 'if' in documentation and tutorial.
Also update the naturaldocs keywords file.

Closes #1396
Diffstat (limited to 'doc/tutorial')
-rw-r--r--doc/tutorial/control.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/tutorial/control.md b/doc/tutorial/control.md
index 966aeb2df52..fc89218b751 100644
--- a/doc/tutorial/control.md
+++ b/doc/tutorial/control.md
@@ -67,7 +67,7 @@ that `(float, float)` is a tuple of two floats:
 
     fn angle(vec: (float, float)) -> float {
         alt vec {
-          (0f, y) when y < 0f { 1.5 * std::math::pi }
+          (0f, y) if y < 0f { 1.5 * std::math::pi }
           (0f, y) { 0.5 * std::math::pi }
           (x, y) { std::math::atan(y / x) }
         }