From d738df7c508af467410c7537229673aa3c3b44c8 Mon Sep 17 00:00:00 2001 From: Kurt Schwehr Date: Thu, 1 Aug 2024 10:10:29 -0700 Subject: [PATCH] codespell --- ais/stream/checksum.py | 2 +- src/libais/ais.h | 2 +- src/libais/ais17.cpp | 2 +- src/libais/ais26.cpp | 2 +- src/libais/vdm.cpp | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ais/stream/checksum.py b/ais/stream/checksum.py index 5dff0bef..7e46e4df 100755 --- a/ais/stream/checksum.py +++ b/ais/stream/checksum.py @@ -27,7 +27,7 @@ def checksumStr(data): if data[0]=='!' or data[0]=='?': data = data[1:] if data[-1]=='*': data = data[:-1] if data[-3]=='*': data = data[:-3] - # FIX: rename sum to not shadown builting function + # FIX: rename sum to not shadow builtin function checksum = 0 for c in data: checksum = checksum ^ ord(c) diff --git a/src/libais/ais.h b/src/libais/ais.h index dba54683..7ed43cb5 100644 --- a/src/libais/ais.h +++ b/src/libais/ais.h @@ -2479,7 +2479,7 @@ class Ais16 : public AisMsg { ostream& operator<< (ostream &o, const Ais16 &msg); // ITU-R M.823 http://www.itu.int/rec/R-REC-M.823/en -// 17 - 'A' - GNSS broacast - TODO(schwehr): only partially coded +// 17 - 'A' - GNSS broadcast - TODO(schwehr): only partially coded class Ais17 : public AisMsg { public: int spare; diff --git a/src/libais/ais17.cpp b/src/libais/ais17.cpp index bb7cc604..605774fb 100644 --- a/src/libais/ais17.cpp +++ b/src/libais/ais17.cpp @@ -1,4 +1,4 @@ -// A - GNSS broacast - +// A - GNSS broadcast - // TODO(schwehr): only partially coded - need to finish // http://www.itu.int/rec/R-REC-M.823/en // http://www.iala-aism.org/iala/publications/documentspdf/doc_348_eng.pdf diff --git a/src/libais/ais26.cpp b/src/libais/ais26.cpp index 81bf1007..f54a9aa7 100644 --- a/src/libais/ais26.cpp +++ b/src/libais/ais26.cpp @@ -1,6 +1,6 @@ // 'J' - Multi slot binary message with comm state // TODO(schwehr): handle payload -// BAD: the comm-state is after the veriable payload. This is a bad design. +// BAD: the comm-state is after the variable payload. This is a bad design. // See also: http://www.e-navigation.nl/asm diff --git a/src/libais/vdm.cpp b/src/libais/vdm.cpp index da258ba3..f8a173a8 100644 --- a/src/libais/vdm.cpp +++ b/src/libais/vdm.cpp @@ -316,7 +316,7 @@ bool VdmStream::AddLine(const std::string &line) { int seq = sentence->sequence_number(); int tot = sentence->sentence_total(); - // These are enforced by NmeaSentence, so only check wehen debugging. + // These are enforced by NmeaSentence, so only check when debugging. assert(seq < kNumSequenceChannels); assert(tot < kMaxSentences);