Skip to content

Commit

Permalink
chore: remove repeat words (XRPLF#5053)
Browse files Browse the repository at this point in the history
Signed-off-by: dashangcun <[email protected]>
Co-authored-by: dashangcun <[email protected]>
Co-authored-by: Zack Brunson <[email protected]>
  • Loading branch information
3 people authored Jul 9, 2024
1 parent 0f32109 commit e8602b8
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion external/secp256k1/src/secp256k1.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/test/csf/CollectorRef.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/test/csf/Digraph.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 <class VertexName>
void
Expand Down
2 changes: 1 addition & 1 deletion src/xrpld/shamap/detail/TaggedPointer.h
Original file line number Diff line number Diff line change
Expand Up @@ -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<SHAMapTreeNode>`. The sizes of these arrays are
determined by the tag. The tag is an index into an array (`boundaries`,
Expand Down
2 changes: 1 addition & 1 deletion src/xrpld/shamap/detail/TaggedPointer.ipp
Original file line number Diff line number Diff line change
Expand Up @@ -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 <i to
Expand Down

0 comments on commit e8602b8

Please sign in to comment.