aboutsummaryrefslogtreecommitdiffstats
path: root/lib/erl_docgen/doc/src/example.txt
diff options
context:
space:
mode:
Diffstat (limited to 'lib/erl_docgen/doc/src/example.txt')
-rw-r--r--lib/erl_docgen/doc/src/example.txt17
1 files changed, 17 insertions, 0 deletions
diff --git a/lib/erl_docgen/doc/src/example.txt b/lib/erl_docgen/doc/src/example.txt
new file mode 100644
index 0000000000..ad86165391
--- /dev/null
+++ b/lib/erl_docgen/doc/src/example.txt
@@ -0,0 +1,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