Skip to content

Commit

Permalink
[libc][NFC] Fixing various typos
Browse files Browse the repository at this point in the history
  • Loading branch information
gchatelet committed May 31, 2023
1 parent 7030c01 commit c76a3e7
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion libc/src/__support/libc_assert.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ LIBC_INLINE void report_assertion_failure(const char *assertion,
#endif

// The public "assert" macro calls abort on failure. Should it be same here?
// The libc intenral assert can fire from anywhere inside the libc. So, to
// The libc internal assert can fire from anywhere inside the libc. So, to
// avoid potential chicken-and-egg problems, it is simple to do a quick_exit
// on assertion failure instead of calling abort. We also don't want to use
// __builtin_trap as it could potentially be implemented using illegal
Expand Down
2 changes: 1 addition & 1 deletion libc/test/UnitTest/LibcTest.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ namespace __llvm_libc {
namespace testing {

// Only the following conditions are supported. Notice that we do not have
// a TRUE or FALSE condition. That is because, C library funtions do not
// a TRUE or FALSE condition. That is because, C library functions do not
// return boolean values, but use integral return values to indicate true or
// false conditions. Hence, it is more appropriate to use the other comparison
// conditions for such cases.
Expand Down
2 changes: 1 addition & 1 deletion libc/test/UnitTest/Test.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
// redefine it as necessary.
#define libc_make_test_file_path(file_name) (file_name)

#ifdef LIBC_COPT_TEST_USE_FUCHSIA
#if defined(LIBC_COPT_TEST_USE_FUCHSIA)
#include "FuchsiaTest.h"
#elif defined(LIBC_COPT_TEST_USE_PIGWEED)
#include "PigweedTest.h"
Expand Down
2 changes: 1 addition & 1 deletion libc/test/src/string/memory_utils/memory_check_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#define LIBC_TEST_SRC_STRING_MEMORY_UTILS_MEMORY_CHECK_UTILS_H

#include "src/__support/CPP/span.h"
#include "src/__support/libc_assert.h"
#include "src/__support/libc_assert.h" // LIBC_ASSERT
#include "src/__support/macros/sanitizer.h"
#include "src/string/memory_utils/utils.h"
#include <stddef.h> // size_t
Expand Down
4 changes: 2 additions & 2 deletions libc/utils/MPFRWrapper/MPFRUtils.h
Original file line number Diff line number Diff line change
Expand Up @@ -197,8 +197,8 @@ class MPFRMatcher : public testing::Matcher<OutputType> {
return match(input, match_value);
}

// This method is marked with NOLINT because it the name `explainError`
// does not confirm to the coding style.
// This method is marked with NOLINT because the name `explainError` does not
// conform to the coding style.
void explainError() override { // NOLINT
explain_error(input, match_value);
}
Expand Down

1 comment on commit c76a3e7

@michaelrj-google
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

Please sign in to comment.