Browse Source

cast: fix indentation in example.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Rusty Russell 9 years ago
parent
commit
be24e49657
1 changed files with 2 additions and 2 deletions
  1. 2 2
      ccan/cast/cast.h

+ 2 - 2
ccan/cast/cast.h

@@ -38,8 +38,8 @@
  *	{
  *	{
  *		size_t i;
  *		size_t i;
  *		for (i = 0; i < strlen(haystack); 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;
  *		return NULL;
  *	}
  *	}
  */
  */