summaryrefslogtreecommitdiff
path: root/absl/crc/internal
diff options
context:
space:
mode:
authorGravatar Vertexwahn <julian.amann@tum.de>2023-04-24 20:13:05 +0200
committerGravatar Vertexwahn <julian.amann@tum.de>2023-04-24 21:25:50 +0200
commit421a74dce4c6f768bfcca94ba62b65ded1d50f7c (patch)
tree5eb2dcfa7d285ad9c8b9c67f33f8e20acf02ff7a /absl/crc/internal
parent4ffaea74c1f5408e0757547a1ca0518ad43fa9f1 (diff)
Fix some spelling mistakes
Diffstat (limited to 'absl/crc/internal')
-rw-r--r--absl/crc/internal/crc.cc2
-rw-r--r--absl/crc/internal/crc.h2
-rw-r--r--absl/crc/internal/crc_cord_state.h2
-rw-r--r--absl/crc/internal/crc_internal.h2
4 files changed, 4 insertions, 4 deletions
diff --git a/absl/crc/internal/crc.cc b/absl/crc/internal/crc.cc
index 87202165..ba4c6d13 100644
--- a/absl/crc/internal/crc.cc
+++ b/absl/crc/internal/crc.cc
@@ -438,7 +438,7 @@ CRC* CRC::Crc32c() {
// This Concat implementation works for arbitrary polynomials.
void CRC::Concat(uint32_t* px, uint32_t y, size_t ylen) {
// https://en.wikipedia.org/wiki/Mathematics_of_cyclic_redundancy_checks
- // The CRC of a message M is the remainder of polynomial divison modulo G,
+ // The CRC of a message M is the remainder of polynomial division modulo G,
// where the coefficient arithmetic is performed modulo 2 (so +/- are XOR):
// R(x) = M(x) x**n (mod G)
// (n is the degree of G)
diff --git a/absl/crc/internal/crc.h b/absl/crc/internal/crc.h
index 72515b06..08afba3c 100644
--- a/absl/crc/internal/crc.h
+++ b/absl/crc/internal/crc.h
@@ -53,7 +53,7 @@ class CRC {
// points to an array of "length" zero bytes.
virtual void ExtendByZeroes(uint32_t* crc, size_t length) const = 0;
- // Inverse opration of ExtendByZeroes. If `crc` is the CRC value of a string
+ // Inverse operation of ExtendByZeroes. If `crc` is the CRC value of a string
// ending in `length` zero bytes, this returns a CRC value of that string
// with those zero bytes removed.
virtual void UnextendByZeroes(uint32_t* crc, size_t length) const = 0;
diff --git a/absl/crc/internal/crc_cord_state.h b/absl/crc/internal/crc_cord_state.h
index d305424c..bc62d555 100644
--- a/absl/crc/internal/crc_cord_state.h
+++ b/absl/crc/internal/crc_cord_state.h
@@ -71,7 +71,7 @@ class CrcCordState {
struct Rep {
// `removed_prefix` is the crc and length of any prefix that has been
// removed from the Cord (for example, by calling
- // `CrcCord::RemovePrefix()`). To get the checkum of any prefix of the cord,
+ // `CrcCord::RemovePrefix()`). To get the checksum of any prefix of the cord,
// this value must be subtracted from `prefix_crc`. See `Checksum()` for an
// example.
//
diff --git a/absl/crc/internal/crc_internal.h b/absl/crc/internal/crc_internal.h
index 3a047880..97083423 100644
--- a/absl/crc/internal/crc_internal.h
+++ b/absl/crc/internal/crc_internal.h
@@ -111,7 +111,7 @@ class CRC32 : public CRCImpl {
// Common implementation guts for ExtendByZeroes and UnextendByZeroes().
//
// zeroes_table is a table as returned by FillZeroesTable(), containing
- // polynomials representing CRCs of strings-of-zeros of various lenghts,
+ // polynomials representing CRCs of strings-of-zeros of various lengths,
// and which can be combined by polynomial multiplication. poly_table is
// a table of CRC byte extension values. These tables are determined by
// the generator polynomial.