cast: fix indentation in example.
authorRusty Russell <rusty@rustcorp.com.au>
Tue, 28 Jun 2016 20:39:52 +0000 (06:09 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Tue, 28 Jun 2016 20:39:52 +0000 (06:09 +0930)
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
ccan/cast/cast.h

index 1f3a7aac1e48640f37868c0564e3851e203113e6..cd384c4636d8e5a51fa2ba55f97ff162b5dff84a 100644 (file)
@@ -38,8 +38,8 @@
  *     {
  *             size_t i;
  *             for (i = 0; i < strlen(haystack); i++)
- *             if (memcmp("needle", haystack+i, strlen("needle")) == 0)
- *                     return cast_const(char *, haystack+i);
+ *                     if (memcmp("needle", haystack+i, strlen("needle")) == 0)
+ *                             return cast_const(char *, haystack+i);
  *             return NULL;
  *     }
  */