auto merge of #8480 : cmr/rust/tutorial, r=metajack
This commit is contained in:
commit
3dde8e0f29
1 changed files with 1 additions and 1 deletions
|
@ -436,7 +436,7 @@ control reaches the end of the block:
|
||||||
fn signum(x: int) -> int {
|
fn signum(x: int) -> int {
|
||||||
if x < 0 { -1 }
|
if x < 0 { -1 }
|
||||||
else if x > 0 { 1 }
|
else if x > 0 { 1 }
|
||||||
else { return 0 }
|
else { 0 }
|
||||||
}
|
}
|
||||||
~~~~
|
~~~~
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue