docs: fix spelling 'behaviour' -> 'behavior' in gtest header comments

This commit is contained in:
ChaiAndCode 2025-09-20 17:20:30 +08:00
parent 50b8600c63
commit 403604dfc7
2 changed files with 3 additions and 3 deletions

View File

@ -2144,7 +2144,7 @@ GTEST_DISABLE_MSC_DEPRECATED_POP_()
#ifdef GTEST_OS_WINDOWS_MOBILE #ifdef GTEST_OS_WINDOWS_MOBILE
// Windows CE has no C library. The abort() function is used in // Windows CE has no C library. The abort() function is used in
// several places in Google Test. This implementation provides a reasonable // several places in Google Test. This implementation provides a reasonable
// imitation of standard behaviour. // imitation of standard behavior.
[[noreturn]] void Abort(); [[noreturn]] void Abort();
#else #else
[[noreturn]] inline void Abort() { abort(); } [[noreturn]] inline void Abort() { abort(); }

View File

@ -84,7 +84,7 @@ class GTEST_API_ String {
// input is NULL. // input is NULL.
// //
// The wide string is created using the ANSI codepage (CP_ACP) to // The wide string is created using the ANSI codepage (CP_ACP) to
// match the behaviour of the ANSI versions of Win32 calls and the // match the behavior of the ANSI versions of Win32 calls and the
// C runtime. // C runtime.
static LPCWSTR AnsiToUtf16(const char* c_str); static LPCWSTR AnsiToUtf16(const char* c_str);
@ -94,7 +94,7 @@ class GTEST_API_ String {
// input is NULL. // input is NULL.
// //
// The returned string is created using the ANSI codepage (CP_ACP) to // The returned string is created using the ANSI codepage (CP_ACP) to
// match the behaviour of the ANSI versions of Win32 calls and the // match the behavior of the ANSI versions of Win32 calls and the
// C runtime. // C runtime.
static const char* Utf16ToAnsi(LPCWSTR utf16_str); static const char* Utf16ToAnsi(LPCWSTR utf16_str);
#endif #endif