summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruno Marques <bmarques68@gmail.com>2022-09-28 10:05:47 +0200
committerGitHub <noreply@github.com>2022-09-28 10:05:47 +0200
commit26dd01c3eff30ad00300b8a47f13c29d1ba31019 (patch)
tree34dcd70b4b0d5a0c378509af65f465d8ef9496f8
parent61704169cbf2756b2ea084a0ecfdc8cf34f5cc75 (diff)
downloadDLT-daemon-26dd01c3eff30ad00300b8a47f13c29d1ba31019.tar.gz
Update dlt_for_developers.md (#405)
Fix error in suggested best-practice code snippet
-rw-r--r--doc/dlt_for_developers.md3
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/dlt_for_developers.md b/doc/dlt_for_developers.md
index 29da3ef..355eb03 100644
--- a/doc/dlt_for_developers.md
+++ b/doc/dlt_for_developers.md
@@ -226,7 +226,8 @@ for(int index=0; index<MAX; index++)
Good example:
```
-for(int index=0; index<MAX; index++)
+int index = 0;
+for(; index<MAX; index++)
{
/* ... */
}