Browse Source

time: fix example.

time_between()'s ordering matches time_sub, for better or worse.

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

+ 1 - 1
ccan/time/time.h

@@ -249,7 +249,7 @@ static inline bool timeabs_eq(struct timeabs a, struct timeabs b)
  *			exit(0);
  *		}
  *		wait(NULL);
- *		diff = time_between(start, time_now());
+ *		diff = time_between(time_now(), start);
  *		return timerel_eq(diff, zero);
  *	}
  */