aboutsummaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
authorZandra Hird <[email protected]>2015-02-13 15:00:10 +0100
committerZandra Hird <[email protected]>2015-02-13 15:00:10 +0100
commitb0e9b2040221d880910c89f27b06dfef39105e39 (patch)
tree17272e5b09711e26796abcc7fa549cb231bbf851 /system
parent3d6b7efcd7af5347def17c751cc9d411e58d82d1 (diff)
parent2b0326effe5c28acac7aac302295c5b0c5216cff (diff)
downloadotp-b0e9b2040221d880910c89f27b06dfef39105e39.tar.gz
otp-b0e9b2040221d880910c89f27b06dfef39105e39.tar.bz2
otp-b0e9b2040221d880910c89f27b06dfef39105e39.zip
Merge branch 'yannayl/patch-1' into maint
* yannayl/patch-1: Fixed fun_test examples
Diffstat (limited to 'system')
-rw-r--r--system/doc/programming_examples/fun_test.erl8
1 files changed, 1 insertions, 7 deletions
diff --git a/system/doc/programming_examples/fun_test.erl b/system/doc/programming_examples/fun_test.erl
index 8472fd87f8..8a3b0106c0 100644
--- a/system/doc/programming_examples/fun_test.erl
+++ b/system/doc/programming_examples/fun_test.erl
@@ -1,17 +1,11 @@
%1
-module(fun_test).
--export([t1/0, t2/0, t3/0, t4/0, double/1]).
+-export([t1/0, t2/0]).
-import(lists, [map/2]).
t1() -> map(fun(X) -> 2 * X end, [1,2,3,4,5]).
t2() -> map(fun double/1, [1,2,3,4,5]).
-t3() -> map({?MODULE, double}, [1,2,3,4,5]).
-
double(X) -> X * 2.
%1
-
-
-t4() ->
- "hello world".