Skip to content

Commit f34eafd

Browse files
committed
reference: follow idiom in code snippet
1 parent 07ca1ab commit f34eafd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/doc/reference.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -921,7 +921,7 @@ An example of a function:
921921

922922
```
923923
fn add(x: i32, y: i32) -> i32 {
924-
return x + y;
924+
x + y
925925
}
926926
```
927927

0 commit comments

Comments
 (0)