Skip to content

Commit 437e0e5

Browse files
[libcxx][test][NFC] Fix comment typos.
(Testing git commit access.)
1 parent 19e95ab commit 437e0e5

File tree

23 files changed

+29
-29
lines changed

23 files changed

+29
-29
lines changed

libcxx/test/std/containers/sequences/array/array.cons/initializer_list.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
// <array>
1010

11-
// Construct with initizializer list
11+
// Construct with initializer list
1212

1313
#include <array>
1414
#include <cassert>

libcxx/test/std/input.output/filesystems/class.path/path.member/path.gen/lexically_relative_and_proximate.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ int main(int, char**) {
7878
const fs::path proximate_output = p.lexically_proximate(TC.base);
7979
// [path.gen] lexically_proximate
8080
// Returns: If the value of lexically_relative(base) is not an empty path,
81-
// return it.Otherwise return *this.
81+
// return it. Otherwise return *this.
8282
const fs::path proximate_expected = output.native().empty() ? p
8383
: output;
8484
if (!PathEq(proximate_expected, proximate_output))

libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.relative/relative.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ TEST_CASE(test_signature_5) {
6666

6767
TEST_CASE(test_signature_6) {
6868
// FIXME? If the trailing separator occurs in a part of the path that exists,
69-
// it is ommitted. Otherwise it is added to the end of the result.
69+
// it is omitted. Otherwise it is added to the end of the result.
7070
fs::path p(StaticEnv::SymlinkToDir / "dir2/./");
7171
const fs::path output = fs::weakly_canonical(p);
7272
TEST_CHECK(output == std::string(StaticEnv::Dir / "dir2"));

libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.weakly_canonical/weakly_canonical.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ int main(int, char**) {
4545
{StaticEnv::SymlinkToDir, StaticEnv::Dir},
4646
{StaticEnv::SymlinkToDir / "dir2/.", StaticEnv::Dir / "dir2"},
4747
// FIXME? If the trailing separator occurs in a part of the path that exists,
48-
// it is ommitted. Otherwise it is added to the end of the result.
48+
// it is omitted. Otherwise it is added to the end of the result.
4949
{StaticEnv::SymlinkToDir / "dir2/./", StaticEnv::Dir / "dir2"},
5050
{StaticEnv::SymlinkToDir / "dir2/DNE/./", StaticEnv::Dir / "dir2/DNE/"},
5151
{StaticEnv::SymlinkToDir / "dir2", StaticEnv::Dir2},

libcxx/test/std/input.output/iostreams.base/fpos/fpos.operations/difference.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
// template <class StateT> class fpos
1212

13-
// Subraction with fpos
13+
// Subtraction with fpos
1414

1515
#include <ios>
1616
#include <cassert>

libcxx/test/std/input.output/iostreams.base/fpos/fpos.operations/subtraction.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
// template <class StateT> class fpos
1212

13-
// Subraction with offset
13+
// Subtraction with offset
1414

1515
#include <ios>
1616
#include <cassert>

libcxx/test/std/numerics/c.math/abs.pass.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ void test_abs()
3535

3636
void test_big()
3737
{
38-
long long int big_value = std::numeric_limits<long long int>::max(); // a value to big for ints to store
38+
long long int big_value = std::numeric_limits<long long int>::max(); // a value too big for ints to store
3939
long long int negative_big_value = -big_value;
40-
assert(std::abs(negative_big_value) == big_value); // make sure it doesnt get casted to a smaller type
40+
assert(std::abs(negative_big_value) == big_value); // make sure it doesn't get casted to a smaller type
4141
}
4242

4343
// The following is helpful to keep in mind:

libcxx/test/std/strings/basic.string/string.ops/string_compare/size_size_string_view.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
// <string>
1010

11-
// int compare(size_type pos1, size_type n1, basic_string_vew sv) const;
11+
// int compare(size_type pos1, size_type n1, basic_string_view sv) const;
1212

1313
// When back-deploying to macosx10.7, the RTTI for exception classes
1414
// incorrectly provided by libc++.dylib is mixed with the one in

libcxx/test/std/strings/string.view/string.view.comparison/opge.string_view.pointer.pass.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
// <string>
1010

1111
// template<class charT, class traits, class Allocator>
12-
// constexpr bool operator>=(const charT* lhs, basic_string_wiew<charT,traits> rhs);
12+
// constexpr bool operator>=(const charT* lhs, basic_string_view<charT,traits> rhs);
1313
// template<class charT, class traits, class Allocator>
14-
// constexpr bool operator>=(basic_string_wiew<charT,traits> lhs, const charT* rhs);
14+
// constexpr bool operator>=(basic_string_view<charT,traits> lhs, const charT* rhs);
1515

1616
#include <string_view>
1717
#include <cassert>

libcxx/test/std/strings/string.view/string.view.comparison/opgt.string_view.pointer.pass.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
// <string>
1010

1111
// constexpr template<class charT, class traits, class Allocator>
12-
// bool operator>(const charT* lhs, basic_string_wiew<charT,traits> rhs);
12+
// bool operator>(const charT* lhs, basic_string_view<charT,traits> rhs);
1313
// constexpr template<class charT, class traits, class Allocator>
14-
// bool operator>(basic_string_wiew<charT,traits> lhs, const charT* rhs);
14+
// bool operator>(basic_string_view<charT,traits> lhs, const charT* rhs);
1515

1616
#include <string_view>
1717
#include <cassert>

libcxx/test/std/strings/string.view/string.view.comparison/ople.string_view.pointer.pass.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
// <string>
1010

1111
// template<class charT, class traits, class Allocator>
12-
// constexpr bool operator<=(const charT* lhs, basic_string_wiew<charT,traits> rhs);
12+
// constexpr bool operator<=(const charT* lhs, basic_string_view<charT,traits> rhs);
1313
// template<class charT, class traits, class Allocator>
14-
// constexpr bool operator<=(basic_string_wiew<charT,traits> lhs, const charT* rhs);
14+
// constexpr bool operator<=(basic_string_view<charT,traits> lhs, const charT* rhs);
1515

1616
#include <string_view>
1717
#include <cassert>

libcxx/test/std/strings/string.view/string.view.comparison/oplt.string_view.pointer.pass.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
// <string>
1010

1111
// template<class charT, class traits, class Allocator>
12-
// constexpr bool operator<(const charT* lhs, basic_string_wiew<charT,traits> rhs);
12+
// constexpr bool operator<(const charT* lhs, basic_string_view<charT,traits> rhs);
1313
// template<class charT, class traits, class Allocator>
14-
// constexpr bool operator<(basic_string_wiew<charT,traits> lhs, const charT* rhs);
14+
// constexpr bool operator<(basic_string_view<charT,traits> lhs, const charT* rhs);
1515

1616
#include <string_view>
1717
#include <cassert>

libcxx/test/std/utilities/meta/meta.const.eval/is_constant_evaluated.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ int main(int, char**)
3636
assert(p);
3737
}
3838
// Test the return value of the builtin for basic sanity only. It's the
39-
// compilers job to test tho builtin for correctness.
39+
// compiler's job to test the builtin for correctness.
4040
{
4141
static_assert(std::is_constant_evaluated(), "");
4242
bool p = std::is_constant_evaluated();

libcxx/test/std/utilities/meta/meta.rel/is_convertible.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ int main(int, char**)
250250

251251

252252
// Ensure that CannotInstantiate is not instantiated by is_convertible when it is not needed.
253-
// For example CannotInstantiate is instatiated as a part of ADL lookup for arguments of type CannotInstantiate*.
253+
// For example CannotInstantiate is instantiated as a part of ADL lookup for arguments of type CannotInstantiate*.
254254
static_assert((std::is_convertible<CannotInstantiate<int>*, CannotInstantiate<int>*>::value), "");
255255

256256
return 0;

libcxx/test/std/utilities/optional/optional.specalg/swap.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ void test_swap_sfinae() {
9191
static_assert(!std::is_swappable_v<optional<T>>, "");
9292
}
9393
{
94-
// Even thought CopyOnly has deleted move operations, those operations
94+
// Even though CopyOnly has deleted move operations, those operations
9595
// cause optional<CopyOnly> to have implicitly deleted move operations
9696
// that decay into copies.
9797
using T = TestTypes::CopyOnly;

libcxx/test/std/utilities/smartptr/unique.ptr/unique.ptr.class/unique.ptr.asgn/move_convert.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ void test_sfinae() {
240240
static_assert(std::is_nothrow_assignable<U1C, U1&&>::value, "");
241241
}
242242
{ // Test that non-reference destination deleters can be assigned
243-
// from any source deleter type with a sutible conversion. Including
243+
// from any source deleter type with a suitable conversion. Including
244244
// reference types.
245245
using U1 = std::unique_ptr<VT, GenericConvertingDeleter<0> >;
246246
using U2 = std::unique_ptr<VT, GenericConvertingDeleter<0> &>;

libcxx/test/std/utilities/smartptr/unique.ptr/unique.ptr.class/unique.ptr.ctor/move.pass.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626
// 1 The moved from pointer is empty and the new pointer stores the old value.
2727
// 2 The only requirement on the deleter is that it is MoveConstructible
2828
// or a reference.
29-
// 3 The constructor works for explicitly moved values (ie std::move(x))
30-
// 4 The constructor works for true temporaries (ie a return value)
29+
// 3 The constructor works for explicitly moved values (i.e. std::move(x))
30+
// 4 The constructor works for true temporaries (e.g. a return value)
3131
//
3232
// Plan
3333
// 1 Explicitly construct unique_ptr<T, D> for various deleter types 'D'.

libcxx/test/std/utilities/smartptr/unique.ptr/unique.ptr.class/unique.ptr.ctor/move_convert.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ void test_sfinae() {
128128
static_assert(std::is_nothrow_constructible<U1C, U1&&>::value, "");
129129
}
130130
{ // Test that non-reference destination deleters can be constructed
131-
// from any source deleter type with a sutible conversion. Including
131+
// from any source deleter type with a suitable conversion. Including
132132
// reference types.
133133
using U1 = std::unique_ptr<VT, GenericConvertingDeleter<0> >;
134134
using U2 = std::unique_ptr<VT, GenericConvertingDeleter<0> &>;

libcxx/test/std/utilities/smartptr/unique.ptr/unique.ptr.class/unique.ptr.ctor/nullptr.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ void test_basic() {
5858
template <class VT>
5959
void test_sfinae() {
6060
#if TEST_STD_VER >= 11
61-
{ // the constructor does not participate in overload resultion when
61+
{ // the constructor does not participate in overload resolution when
6262
// the deleter is a pointer type
6363
using U = std::unique_ptr<VT, void (*)(void*)>;
6464
static_assert(!std::is_constructible<U, decltype(nullptr)>::value, "");

libcxx/test/std/utilities/smartptr/unique.ptr/unique.ptr.class/unique.ptr.ctor/pointer.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ struct GenericDeleter {
107107
template <class T>
108108
void test_sfinae() {
109109
#if TEST_STD_VER >= 11
110-
{ // the constructor does not participate in overload resultion when
110+
{ // the constructor does not participate in overload resolution when
111111
// the deleter is a pointer type
112112
using U = std::unique_ptr<T, void (*)(void*)>;
113113
static_assert(!std::is_constructible<U, T*>::value, "");

libcxx/test/std/utilities/time/time.cal/time.cal.weekday/time.cal.weekday.members/ok.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ int main(int, char**)
2828

2929
static_assert( weekday{0}.ok(), "");
3030
static_assert( weekday{1}.ok(), "");
31-
static_assert( weekday{7}.ok(), ""); // 7 is transmorgified into 0 in the ctor
31+
static_assert( weekday{7}.ok(), ""); // 7 is transmogrified into 0 in the ctor
3232
static_assert(!weekday{8}.ok(), "");
3333

3434
for (unsigned i = 0; i <= 7; ++i)

libcxx/test/std/utilities/tuple/tuple.tuple/tuple.assign/convert_copy.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ int main(int, char**)
7777
}
7878
{
7979
// Test that tuple evaluates correctly applies an lvalue reference
80-
// before evaluating is_assignable (ie 'is_assignable<int&, int&>')
80+
// before evaluating is_assignable (i.e. 'is_assignable<int&, int&>')
8181
// instead of evaluating 'is_assignable<int&&, int&>' which is false.
8282
int x = 42;
8383
int y = 43;

libcxx/test/std/utilities/tuple/tuple.tuple/tuple.assign/convert_move.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ int main(int, char**)
9898
}
9999
{
100100
// Test that tuple evaluates correctly applies an lvalue reference
101-
// before evaluating is_assignable (ie 'is_assignable<int&, int&&>')
101+
// before evaluating is_assignable (i.e. 'is_assignable<int&, int&&>')
102102
// instead of evaluating 'is_assignable<int&&, int&&>' which is false.
103103
int x = 42;
104104
int y = 43;

0 commit comments

Comments
 (0)