Skip to content

Commit 93fab48

Browse files
committed
Remove unnecessary return
1 parent ecfc9a8 commit 93fab48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/tutorial.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ control reaches the end of the block:
436436
fn signum(x: int) -> int {
437437
if x < 0 { -1 }
438438
else if x > 0 { 1 }
439-
else { return 0 }
439+
else { 0 }
440440
}
441441
~~~~
442442

0 commit comments

Comments
 (0)