Skip to content

Commit c76a3e7

Browse files
committed
[libc][NFC] Fixing various typos
1 parent 7030c01 commit c76a3e7

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

libc/src/__support/libc_assert.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ LIBC_INLINE void report_assertion_failure(const char *assertion,
4949
#endif
5050

5151
// The public "assert" macro calls abort on failure. Should it be same here?
52-
// The libc intenral assert can fire from anywhere inside the libc. So, to
52+
// The libc internal assert can fire from anywhere inside the libc. So, to
5353
// avoid potential chicken-and-egg problems, it is simple to do a quick_exit
5454
// on assertion failure instead of calling abort. We also don't want to use
5555
// __builtin_trap as it could potentially be implemented using illegal

libc/test/UnitTest/LibcTest.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ namespace __llvm_libc {
3636
namespace testing {
3737

3838
// Only the following conditions are supported. Notice that we do not have
39-
// a TRUE or FALSE condition. That is because, C library funtions do not
39+
// a TRUE or FALSE condition. That is because, C library functions do not
4040
// return boolean values, but use integral return values to indicate true or
4141
// false conditions. Hence, it is more appropriate to use the other comparison
4242
// conditions for such cases.

libc/test/UnitTest/Test.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
// redefine it as necessary.
1717
#define libc_make_test_file_path(file_name) (file_name)
1818

19-
#ifdef LIBC_COPT_TEST_USE_FUCHSIA
19+
#if defined(LIBC_COPT_TEST_USE_FUCHSIA)
2020
#include "FuchsiaTest.h"
2121
#elif defined(LIBC_COPT_TEST_USE_PIGWEED)
2222
#include "PigweedTest.h"

libc/test/src/string/memory_utils/memory_check_utils.h

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

1212
#include "src/__support/CPP/span.h"
13-
#include "src/__support/libc_assert.h"
13+
#include "src/__support/libc_assert.h" // LIBC_ASSERT
1414
#include "src/__support/macros/sanitizer.h"
1515
#include "src/string/memory_utils/utils.h"
1616
#include <stddef.h> // size_t

libc/utils/MPFRWrapper/MPFRUtils.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,8 +197,8 @@ class MPFRMatcher : public testing::Matcher<OutputType> {
197197
return match(input, match_value);
198198
}
199199

200-
// This method is marked with NOLINT because it the name `explainError`
201-
// does not confirm to the coding style.
200+
// This method is marked with NOLINT because the name `explainError` does not
201+
// conform to the coding style.
202202
void explainError() override { // NOLINT
203203
explain_error(input, match_value);
204204
}

0 commit comments

Comments
 (0)