reference: explicit return at function end is not idiomatic
This commit is contained in:
parent
b8b18aac12
commit
85b19d8aa3
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue