summaryrefslogtreecommitdiff
path: root/doc/workflow.txt
diff options
context:
space:
mode:
authorDimitri Staessens <dimitri.staessens@intec.ugent.be>2016-02-26 22:49:25 +0100
committerDimitri Staessens <dimitri.staessens@intec.ugent.be>2016-02-26 22:52:16 +0100
commit223813bbd609d929537b9f3f54bf4eec99d7663b (patch)
treed97467d0c1c56e137ec1433a39ad9251c0aef344 /doc/workflow.txt
parent5ed07e6935a73bd54dd31c96afdf478a42d70ea1 (diff)
downloadouroboros-223813bbd609d929537b9f3f54bf4eec99d7663b.tar.gz
ouroboros-223813bbd609d929537b9f3f54bf4eec99d7663b.zip
doc: fixed example code in workflow doc
Diffstat (limited to 'doc/workflow.txt')
-rw-r--r--doc/workflow.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/workflow.txt b/doc/workflow.txt
index 0f59b4bf..a829192b 100644
--- a/doc/workflow.txt
+++ b/doc/workflow.txt
@@ -23,9 +23,9 @@ int *a;
- Don't explicitly cast malloc, but do
-your * = malloc (sizeof (*your) * len);
+ptr = malloc (sizeof(*ptr) * len);
or
-your * = malloc (sizeof *your * len);
+ptr = malloc (sizeof *ptr * len);
- When checking for invalid pointers use