Skip to content

Commit ad37461

Browse files
authored
chore: Fix some typos in comments (#6040)
1 parent d9c27da commit ad37461

File tree

14 files changed

+16
-16
lines changed

14 files changed

+16
-16
lines changed

external/secp256k1/include/secp256k1.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,7 @@ SECP256K1_API int secp256k1_ecdsa_signature_serialize_compact(
541541
/** Verify an ECDSA signature.
542542
*
543543
* Returns: 1: correct signature
544-
* 0: incorrect or unparseable signature
544+
* 0: incorrect or unparsable signature
545545
* Args: ctx: pointer to a context object
546546
* In: sig: the signature being verified.
547547
* msghash32: the 32-byte message hash being verified.

include/xrpl/basics/SlabAllocator.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ class SlabAllocator
159159
@param count the number of items the slab allocator can allocate; note
160160
that a count of 0 is valid and means that the allocator
161161
is, effectively, disabled. This can be very useful in some
162-
contexts (e.g. when mimimal memory usage is needed) and
162+
contexts (e.g. when minimal memory usage is needed) and
163163
allows for graceful failure.
164164
*/
165165
constexpr explicit SlabAllocator(

include/xrpl/basics/base_uint.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,7 @@ operator<=>(base_uint<Bits, Tag> const& lhs, base_uint<Bits, Tag> const& rhs)
546546
// This comparison might seem wrong on a casual inspection because it
547547
// compares data internally stored as std::uint32_t byte-by-byte. But
548548
// note that the underlying data is stored in big endian, even if the
549-
// plaform is little endian. This makes the comparison correct.
549+
// platform is little endian. This makes the comparison correct.
550550
//
551551
// FIXME: use std::lexicographical_compare_three_way once support is
552552
// added to MacOS.

include/xrpl/basics/comparators.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ namespace ripple {
99

1010
/*
1111
* MSVC 2019 version 16.9.0 added [[nodiscard]] to the std comparison
12-
* operator() functions. boost::bimap checks that the comparitor is a
12+
* operator() functions. boost::bimap checks that the comparator is a
1313
* BinaryFunction, in part by calling the function and ignoring the value.
1414
* These two things don't play well together. These wrapper classes simply
1515
* strip [[nodiscard]] from operator() for use in boost::bimap.

include/xrpl/beast/unit_test/runner.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class runner
3939
4040
The argument string is available to suites and
4141
allows for customization of the test. Each suite
42-
defines its own syntax for the argumnet string.
42+
defines its own syntax for the argument string.
4343
The same argument is passed to all suites.
4444
*/
4545
void

src/test/app/PermissionedDEX_test.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -966,8 +966,8 @@ class PermissionedDEX_test : public beast::unit_test::suite
966966
{
967967
testcase("Remove unfunded offer");
968968

969-
// checking that an unfunded offer will be implictly removed by a
970-
// successfuly payment tx
969+
// checking that an unfunded offer will be implicitly removed by a
970+
// successful payment tx
971971
Env env(*this, features);
972972
auto const& [gw, domainOwner, alice, bob, carol, USD, domainID, credType] =
973973
PermissionedDEX(env);

src/test/app/ValidatorList_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1740,7 +1740,7 @@ class ValidatorList_test : public beast::unit_test::suite
17401740
// locals[0]: from 0 to maxKeys - 4
17411741
// locals[1]: from 1 to maxKeys - 2
17421742
// locals[2]: from 2 to maxKeys
1743-
// interesection of at least 2: same as locals[1]
1743+
// intersection of at least 2: same as locals[1]
17441744
// intersection when 1 is dropped: from 2 to maxKeys - 4
17451745
constexpr static int publishers = 3;
17461746
std::array<

src/test/app/tx/apply_test.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class Apply_test : public beast::unit_test::suite
4949
.first;
5050

5151
if (valid != Validity::Valid)
52-
fail("Non-Fully canoncial signature was not permitted");
52+
fail("Non-Fully canonical signature was not permitted");
5353
}
5454

5555
{
@@ -63,7 +63,7 @@ class Apply_test : public beast::unit_test::suite
6363
fully_canonical.app().config())
6464
.first;
6565
if (valid == Validity::Valid)
66-
fail("Non-Fully canoncial signature was permitted");
66+
fail("Non-Fully canonical signature was permitted");
6767
}
6868

6969
pass();

src/test/core/Config_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1183,7 +1183,7 @@ r.ripple.com:51235
11831183
BEAST_EXPECT(cfg.IPS_FIXED[6] == "12.34.12.123 12345");
11841184
BEAST_EXPECT(cfg.IPS_FIXED[7] == "12.34.12.123 12345");
11851185

1186-
// all ipv6 should be ignored by colon replacer, howsoever formated
1186+
// all ipv6 should be ignored by colon replacer, howsoever formatted
11871187
BEAST_EXPECT(cfg.IPS_FIXED[8] == "::");
11881188
BEAST_EXPECT(cfg.IPS_FIXED[9] == "2001:db8::");
11891189
BEAST_EXPECT(cfg.IPS_FIXED[10] == "::1");

src/test/core/SociDB_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ class SociDB_test final : public TestSuite
7979
void
8080
testSQLiteFileNames()
8181
{
82-
// confirm that files are given the correct exensions
82+
// confirm that files are given the correct extensions
8383
testcase("sqliteFileNames");
8484
BasicConfig c;
8585
setupSQLiteConfig(c, getDatabasePath());

0 commit comments

Comments
 (0)