]> git.lizzy.rs Git - rust.git/commitdiff
reference: follow idiom in code snippet
authorTshepang Lekhonkhobe <tshepang@gmail.com>
Thu, 24 Sep 2015 06:25:29 +0000 (08:25 +0200)
committerTshepang Lekhonkhobe <tshepang@gmail.com>
Thu, 24 Sep 2015 06:25:43 +0000 (08:25 +0200)
src/doc/reference.md

index 83849574260e1ff93034292314a991f962be5935..e8ac474b07eafc3de13c7101982e0068aaccc063 100644 (file)
@@ -921,7 +921,7 @@ An example of a function:
 
 ```
 fn add(x: i32, y: i32) -> i32 {
-    return x + y;
+    x + y
 }
 ```