about summary refs log tree commit diff
path: root/src/hello2.erl
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@gmail.com>2016-09-22T11·56+0200
committerVincent Ambo <tazjin@gmail.com>2016-09-22T11·56+0200
commit6c456a06c7166b70a2347283a7afcfc4107cb3c7 (patch)
treebf6377406adb5b40d93a37119755e1ce7dde1fa6 /src/hello2.erl
Initial check-in
Diffstat (limited to 'src/hello2.erl')
-rw-r--r--src/hello2.erl11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/hello2.erl b/src/hello2.erl
new file mode 100644
index 000000000000..42406919eff8
--- /dev/null
+++ b/src/hello2.erl
@@ -0,0 +1,11 @@
+-module(hello2).
+-export([hello/1]).
+
+hello(Name) ->
+    io:format("Hello ~s!~n", [Name]).
+
+% 3> c(hello2).
+% {ok,hello2}
+% 4> hello2:hello("Joe").
+% Hello Joe!
+% ok