From e8602b81faada84ba85d63520c529ffe756fc90f Mon Sep 17 00:00:00 2001 From: dashangcun <907225865@qq.com> Date: Wed, 10 Jul 2024 06:05:14 +0900 Subject: [PATCH] chore: remove repeat words (#5053) Signed-off-by: dashangcun Co-authored-by: dashangcun Co-authored-by: Zack Brunson --- external/secp256k1/src/secp256k1.c | 2 +- src/test/csf/CollectorRef.h | 2 +- src/test/csf/Digraph.h | 2 +- src/xrpld/shamap/detail/TaggedPointer.h | 2 +- src/xrpld/shamap/detail/TaggedPointer.ipp | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/external/secp256k1/src/secp256k1.c b/external/secp256k1/src/secp256k1.c index bdbd97cc408..a95992c5dd2 100644 --- a/external/secp256k1/src/secp256k1.c +++ b/external/secp256k1/src/secp256k1.c @@ -526,7 +526,7 @@ static int secp256k1_ecdsa_sign_inner(const secp256k1_context* ctx, secp256k1_sc break; } is_nonce_valid = secp256k1_scalar_set_b32_seckey(&non, nonce32); - /* The nonce is still secret here, but it being invalid is is less likely than 1:2^255. */ + /* The nonce is still secret here, but it being invalid is less likely than 1:2^255. */ secp256k1_declassify(ctx, &is_nonce_valid, sizeof(is_nonce_valid)); if (is_nonce_valid) { ret = secp256k1_ecdsa_sig_sign(&ctx->ecmult_gen_ctx, r, s, &sec, &msg, &non, recid); diff --git a/src/test/csf/CollectorRef.h b/src/test/csf/CollectorRef.h index 0f8d90c8ec9..72d1e9545d8 100644 --- a/src/test/csf/CollectorRef.h +++ b/src/test/csf/CollectorRef.h @@ -40,7 +40,7 @@ namespace csf { level when adding to the simulation. The example code below demonstrates the reason for storing the collector - as a reference. The collector's lifetime will generally be be longer than + as a reference. The collector's lifetime will generally be longer than the simulation; perhaps several simulations are run for a single collector instance. The collector potentially stores lots of data as well, so the simulation needs to point to the single instance, rather than requiring diff --git a/src/test/csf/Digraph.h b/src/test/csf/Digraph.h index 2c6b356bf02..3f079eac17c 100644 --- a/src/test/csf/Digraph.h +++ b/src/test/csf/Digraph.h @@ -220,7 +220,7 @@ class Digraph @param fileName The output file (creates) @param vertexName A invokable T vertexName(Vertex const &) that returns the name target use for the vertex in the file - T must be be ostream-able + T must be ostream-able */ template void diff --git a/src/xrpld/shamap/detail/TaggedPointer.h b/src/xrpld/shamap/detail/TaggedPointer.h index 58271f59c01..48534076548 100644 --- a/src/xrpld/shamap/detail/TaggedPointer.h +++ b/src/xrpld/shamap/detail/TaggedPointer.h @@ -37,7 +37,7 @@ namespace ripple { low bits. When dereferencing the pointer, these low "tag" bits are set to zero. When accessing the tag bits, the high "pointer" bits are set to zero. - The "pointer" part points to to the equivalent to an array of + The "pointer" part points to the equivalent to an array of `SHAMapHash` followed immediately by an array of `shared_ptr`. The sizes of these arrays are determined by the tag. The tag is an index into an array (`boundaries`, diff --git a/src/xrpld/shamap/detail/TaggedPointer.ipp b/src/xrpld/shamap/detail/TaggedPointer.ipp index 6770b53021e..309913c79c0 100644 --- a/src/xrpld/shamap/detail/TaggedPointer.ipp +++ b/src/xrpld/shamap/detail/TaggedPointer.ipp @@ -258,7 +258,7 @@ TaggedPointer::getChildIndex(std::uint16_t isBranch, int i) const // of a child in the array is the number of non-empty children // before it. Since `isBranch_` is a bitset of the stored // children, we simply need to mask out (and set to zero) all - // the bits in `isBranch_` equal to to higher than `i` and count + // the bits in `isBranch_` equal to higher than `i` and count // the bits. // mask sets all the bits >=i to zero and all the bits