about summary refs log tree commit diff
diff options
context:
space:
mode:
authorCorey Richardson <corey@octayn.net>2013-08-12 20:52:37 -0400
committerCorey Richardson <corey@octayn.net>2013-08-12 20:52:37 -0400
commit93fab48b524cf73dca56ec51d408c88cf41c998c (patch)
treedaaa9186ad44b149b7296ff49e94703e70064b05
parentecfc9a82231eef47bf522e6d18138a0f3414d914 (diff)
downloadrust-93fab48b524cf73dca56ec51d408c88cf41c998c.tar.gz
rust-93fab48b524cf73dca56ec51d408c88cf41c998c.zip
Remove unnecessary return
-rw-r--r--doc/tutorial.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/tutorial.md b/doc/tutorial.md
index f4264b0d5af..1813356a1f3 100644
--- a/doc/tutorial.md
+++ b/doc/tutorial.md
@@ -436,7 +436,7 @@ control reaches the end of the block:
 fn signum(x: int) -> int {
     if x < 0 { -1 }
     else if x > 0 { 1 }
-    else { return 0 }
+    else { 0 }
 }
 ~~~~