diff options
author | Dimitri Staessens <dimitri.staessens@intec.ugent.be> | 2016-02-26 22:49:25 +0100 |
---|---|---|
committer | Dimitri Staessens <dimitri.staessens@intec.ugent.be> | 2016-02-26 22:52:16 +0100 |
commit | 223813bbd609d929537b9f3f54bf4eec99d7663b (patch) | |
tree | d97467d0c1c56e137ec1433a39ad9251c0aef344 /doc | |
parent | 5ed07e6935a73bd54dd31c96afdf478a42d70ea1 (diff) | |
download | ouroboros-223813bbd609d929537b9f3f54bf4eec99d7663b.tar.gz ouroboros-223813bbd609d929537b9f3f54bf4eec99d7663b.zip |
doc: fixed example code in workflow doc
Diffstat (limited to 'doc')
-rw-r--r-- | doc/workflow.txt | 4 |
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
|