reference: explicit return at function end is not idiomatic

This commit is contained in:
Tshepang Lekhonkhobe 2016-02-04 22:32:53 +02:00
parent b8b18aac12
commit 85b19d8aa3

View File

@ -3504,7 +3504,7 @@ An example of a `fn` type:
```
fn add(x: i32, y: i32) -> i32 {
return x + y;
x + y
}
let mut x = add(5,7);