aboutsummaryrefslogtreecommitdiffstats
path: root/lib/erl_docgen/doc/src/example.txt
diff options
context:
space:
mode:
authorLars Thorsen <[email protected]>2011-11-17 12:27:59 +0100
committerLars Thorsen <[email protected]>2011-11-18 14:28:44 +0100
commit4424b10d7054025eef3e721f64fb53ad7b357282 (patch)
tree3021ca22d285757cd63054e6925b7c56ec8724a7 /lib/erl_docgen/doc/src/example.txt
parentebaf44e2d10bdf6bca2fc83d10e75e144dcbde2d (diff)
downloadotp-4424b10d7054025eef3e721f64fb53ad7b357282.tar.gz
otp-4424b10d7054025eef3e721f64fb53ad7b357282.tar.bz2
otp-4424b10d7054025eef3e721f64fb53ad7b357282.zip
[erl_docgen] Tidy up the documentation moved from docbuilder to erl_docgen
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