From 3ae4ce736d1d53189a1c6d82e00915dfe20f7738 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Fri, 28 Aug 2020 10:09:09 +0930 Subject: [PATCH] Apply @cdecker typo suggestions from code review Co-authored-by: Christian Decker --- common/random_select.h | 2 +- common/route.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/common/random_select.h b/common/random_select.h index 02bfbba2f..3e7545d6d 100644 --- a/common/random_select.h +++ b/common/random_select.h @@ -11,7 +11,7 @@ /** * random_select: return true if we should select this one. * @weight: weight for this option (use 1.0 if all the same) - * @tot_wieght: returns with sum of weights (must be initialized to zero) + * @tot_weight: returns with sum of weights (must be initialized to zero) * * This always returns true on the first non-zero weight, and weighted * randomly from then on. diff --git a/common/route.h b/common/route.h index fdb7c02d1..91961844f 100644 --- a/common/route.h +++ b/common/route.h @@ -12,7 +12,7 @@ struct route { struct gossmap_chan *c; }; -/* Can c carrt amount in dir? */ +/* Can c carry amount in dir? */ bool route_can_carry(const struct gossmap *map, const struct gossmap_chan *c, int dir,