aboutsummaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
authoryannayl <[email protected]>2015-01-27 12:37:44 +0200
committerZandra Hird <[email protected]>2015-02-11 16:23:31 +0100
commit2b0326effe5c28acac7aac302295c5b0c5216cff (patch)
tree27d8af09a22bf483b10e25368d5c79921d2f860c /system
parent425668272206a0f2e4b383aef0e2364e35046686 (diff)
downloadotp-2b0326effe5c28acac7aac302295c5b0c5216cff.tar.gz
otp-2b0326effe5c28acac7aac302295c5b0c5216cff.tar.bz2
otp-2b0326effe5c28acac7aac302295c5b0c5216cff.zip
Fixed fun_test examples
Removed false example from fun_test.erl Removed unused code from fun_test.erl
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".