aboutsummaryrefslogtreecommitdiffstats
path: root/lib/erl_docgen/doc/src/example.txt
blob: ad86165391b2b9ed4f7595c2bd56c525e4f33b6d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
This example code is used in block_tags.xml.

%% Erlang example
-module(example).

start() ->
    {error,"Pid required!"}.

start(Pid) ->
    spawn(smalltalk,main,[]).
%% Erlang example

// A little C example
int main() {
  for(;;);
}
// A little C example