From 9f47c0431a7362cebf57158a3b87a00cbeb784f3 Mon Sep 17 00:00:00 2001 From: practicalswift Date: Sat, 27 Jan 2018 23:21:14 +0100 Subject: [PATCH] Fix typos --- channeld/channel_wire.csv | 2 +- tools/check-bolt.c | 4 ++-- wire/test/run-peer-wire.c | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/channeld/channel_wire.csv b/channeld/channel_wire.csv index 3d48549bd3fd..751284704b6d 100644 --- a/channeld/channel_wire.csv +++ b/channeld/channel_wire.csv @@ -96,7 +96,7 @@ channel_fail_htlc,,id,u64 # If this is non-zero length, you need to wrap this and pass it on. channel_fail_htlc,,len,u16 channel_fail_htlc,,error_pkt,len*u8 -# If it errcode is != 0, it's a local error, otherwise we're passing thru. +# If it errcode is != 0, it's a local error, otherwise we're passing through. channel_fail_htlc,,errcode,u16 # If errcode & UPDATE, this says which outgoing channel failed. channel_fail_htlc,,which_channel,struct short_channel_id diff --git a/tools/check-bolt.c b/tools/check-bolt.c index 176f4da6d168..fd5c7e5ea077 100644 --- a/tools/check-bolt.c +++ b/tools/check-bolt.c @@ -160,7 +160,7 @@ static char *code_to_regex(const char *code, size_t len, bool escape) after_nl = false; continue; } - /* Fall thru. */ + /* Fall through. */ case '.': case '$': case '^': @@ -172,7 +172,7 @@ static char *code_to_regex(const char *code, size_t len, bool escape) case '|': if (escape) *(p++) = '\\'; - /* Fall thru */ + /* Fall through */ default: *(p++) = code[i]; } diff --git a/wire/test/run-peer-wire.c b/wire/test/run-peer-wire.c index c07c34b74e77..f926160b216a 100644 --- a/wire/test/run-peer-wire.c +++ b/wire/test/run-peer-wire.c @@ -47,11 +47,11 @@ static void set_pubkey(struct pubkey *key) #define with_field(p, field) \ (upto_field((p), field) + sizeof((p)->field)) -/* Equal upto this field */ +/* Equal up to this field */ #define eq_upto(p1, p2, field) \ (memcmp((p1), (p2), upto_field(p1, field)) == 0) -/* Equal upto and including this field */ +/* Equal up to and including this field */ #define eq_with(p1, p2, field) \ (memcmp((p1), (p2), with_field(p1, field)) == 0)