From 6c730e3ef429ad3a65d57da44b0c40401877ab0f Mon Sep 17 00:00:00 2001 From: Cerem Cem ASLAN Date: Sat, 22 Jul 2017 21:12:14 +0300 Subject: [PATCH] fixes pyos/dg#37 --- src/tutorial/index.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tutorial/index.md b/src/tutorial/index.md index eb4e625..d29ed98 100644 --- a/src/tutorial/index.md +++ b/src/tutorial/index.md @@ -463,11 +463,11 @@ useless_function = -> print "Really useless." Functions always return the last value they evaluate. ```dg -definitely_not_4 = x -> +definitely_4 = x -> x + 2 4 -definitely_not_4 40 #=> not 4 +definitely_4 56 #=> 4 ``` Unless you use an explicit `return`, in which case they don't.