Skip to content

Commit

Permalink
Fix spelling mistakes
Browse files Browse the repository at this point in the history
  • Loading branch information
Vertexwahn committed Apr 27, 2023
1 parent 6742834 commit 22cb44e
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 18 deletions.
6 changes: 3 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -539,11 +539,11 @@ severity level.
"program with --v=1 or more";
VLOG_EVERY_N(1, 10)
<< "I’m printed every 10th occurrence, and when you run the program "
"with --v=1 or more. Present occurence is " << google::COUNTER;
"with --v=1 or more. Present occurrence is " << google::COUNTER;
VLOG_IF_EVERY_N(1, (size > 1024), 10)
<< "I’m printed on every 10th occurence of case when size is more "
<< "I’m printed on every 10th occurrence of case when size is more "
" than 1024, when you run the program with --v=1 or more. ";
"Present occurence is " << google::COUNTER;
"Present occurrence is " << google::COUNTER;
Custom Log Prefix Format
Expand Down
2 changes: 1 addition & 1 deletion cmake/TestPackageConfig.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ execute_process (
# Capture the PATH environment variable content set during project generation
# stage. This is required because later during the build stage the PATH is
# modified again (e.g., for MinGW AppVeyor CI builds) by adding back the
# directory containing git.exe. Incidently, the Git installation directory
# directory containing git.exe. Incidentally, the Git installation directory
# also contains sh.exe which causes MinGW Makefile generation to fail.
COMMAND ${CMAKE_COMMAND} -E env PATH=${PATH}
${CMAKE_COMMAND} -C ${INITIAL_CACHE}
Expand Down
2 changes: 1 addition & 1 deletion src/demangle.cc
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ static void MaybeAppendWithLength(State *state, const char * const str,
}
}

// A convenient wrapper arount MaybeAppendWithLength().
// A convenient wrapper around MaybeAppendWithLength().
static bool MaybeAppend(State *state, const char * const str) {
if (state->append) {
size_t length = StrLen(str);
Expand Down
2 changes: 1 addition & 1 deletion src/demangle_unittest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ TEST(Demangle, Windows) {

#else

// Test corner cases of bounary conditions.
// Test corner cases of boundary conditions.
TEST(Demangle, CornerCases) {
const size_t size = 10;
char tmp[size] = { 0 };
Expand Down
14 changes: 7 additions & 7 deletions src/glog/logging.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -290,11 +290,11 @@ typedef void(*CustomPrefixCallback)(std::ostream& s, const LogMessageInfo& l, vo
// "program with --v=1 or more";
// VLOG_EVERY_N(1, 10)
// << "I'm printed every 10th occurrence, and when you run the program "
// "with --v=1 or more. Present occurence is " << google::COUNTER;
// "with --v=1 or more. Present occurrence is " << google::COUNTER;
// VLOG_IF_EVERY_N(1, (size > 1024), 10)
// << "I'm printed on every 10th occurence of case when size is more "
// << "I'm printed on every 10th occurrence of case when size is more "
// " than 1024, when you run the program with --v=1 or more. ";
// "Present occurence is " << google::COUNTER;
// "Present occurrence is " << google::COUNTER;
//
// The supported severity levels for macros that allow you to specify one
// are (in increasing order of severity) INFO, WARNING, ERROR, and FATAL.
Expand Down Expand Up @@ -842,7 +842,7 @@ DEFINE_CHECK_OP_IMPL(Check_GT, > )
#define CHECK_OP_LOG(name, op, val1, val2, log) CHECK((val1) op (val2))
#elif DCHECK_IS_ON()
// In debug mode, avoid constructing CheckOpStrings if possible,
// to reduce the overhead of CHECK statments by 2x.
// to reduce the overhead of CHECK statements by 2x.
// Real DCHECK-heavy tests have seen 1.5x speedups.

// The meaning of "string" might be different between now and
Expand Down Expand Up @@ -1425,7 +1425,7 @@ public:
// is so that streaming can be done more efficiently.
static const size_t kMaxLogMessageLen;

// Theses should not be called directly outside of logging.*,
// These should not be called directly outside of logging.*,
// only passed as SendMethod arguments to other LogMessage methods:
void SendToLog(); // Actually dispatch to the logs
void SendToSyslogAndLog(); // Actually dispatch to syslog and the logs
Expand Down Expand Up @@ -1652,8 +1652,8 @@ GLOG_EXPORT void LogToStderr();
GLOG_EXPORT void SetEmailLogging(LogSeverity min_severity,
const char* addresses);

// A simple function that sends email. dest is a commma-separated
// list of addressess. Thread-safe.
// A simple function that sends email. dest is a comma-separated
// list of addresses. Thread-safe.
GLOG_EXPORT bool SendEmail(const char* dest, const char* subject,
const char* body);

Expand Down
2 changes: 1 addition & 1 deletion src/glog/vlog_is_on.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ struct SiteFlag {
SiteFlag* next;
};

// Helper routine which determines the logging info for a particalur VLOG site.
// Helper routine which determines the logging info for a particular VLOG site.
// site_flag is the address of the site-local pointer to the controlling
// verbosity level
// site_default is the default to use for *site_flag
Expand Down
2 changes: 1 addition & 1 deletion src/logging_unittest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ void TestRawLogging() {

FlagSaver saver;

// Check that RAW loggging does not use mallocs.
// Check that RAW logging does not use mallocs.
NewHook new_hook;

RAW_LOG(INFO, "%s%s%d%c%f", foo->c_str(), "bar ", 10, ' ', 3.4);
Expand Down
2 changes: 1 addition & 1 deletion src/stacktrace_powerpc-inl.h
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ int GetStackTrace(void** result, int max_depth, int skip_count) {
// This check is in case the compiler doesn't define _CALL_SYSV.
result[n++] = *(sp+1);
#else
#error Need to specify the PPC ABI for your archiecture.
#error Need to specify the PPC ABI for your architecture.
#endif
}
// Use strict unwinding rules.
Expand Down
4 changes: 2 additions & 2 deletions src/utilities.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
//
// Author: Shinichiro Hamaji
//
// Define utilties for glog internal usage.
// Define utilities for glog internal usage.

#ifndef UTILITIES_H__
#define UTILITIES_H__
Expand Down Expand Up @@ -174,7 +174,7 @@ inline T sync_val_compare_and_swap(T* ptr, T oldval, T newval) {
:"=a"(ret)
// GCC may produces %sil or %dil for
// constraint "r", but some of apple's gas
// dosn't know the 8 bit registers.
// doesn't know the 8 bit registers.
// We use "q" to avoid these registers.
:"q"(newval), "q"(ptr), "a"(oldval)
:"memory", "cc");
Expand Down

0 comments on commit 22cb44e

Please sign in to comment.