From 85b19d8aa317c34ffa86a351a9352c5e6a991aeb Mon Sep 17 00:00:00 2001 From: Tshepang Lekhonkhobe Date: Thu, 4 Feb 2016 22:32:53 +0200 Subject: [PATCH] reference: explicit return at function end is not idiomatic --- src/doc/reference.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/doc/reference.md b/src/doc/reference.md index f0fdae27ac7..4de26a8dbd8 100644 --- a/src/doc/reference.md +++ b/src/doc/reference.md @@ -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);