mirror of
https://github.com/google/googletest.git
synced 2025-12-06 16:57:00 +08:00
fix(docs): correct typos found during code review
Non-functional changes only: - Fixed minor spelling mistakes in comments - Corrected typos in user-facing strings - No variables, logic, or functional code was modified. Signed-off-by: Marcel Petrick <mail@marcelpetrick.it>
This commit is contained in:
parent
1b96fa13f5
commit
0cc9e85870
@ -40,7 +40,7 @@ fi
|
|||||||
|
|
||||||
# Use Bazel Vendor mode to reduce reliance on external dependencies.
|
# Use Bazel Vendor mode to reduce reliance on external dependencies.
|
||||||
# See https://bazel.build/external/vendor and the Dockerfile for
|
# See https://bazel.build/external/vendor and the Dockerfile for
|
||||||
# an explaination of how this works.
|
# an explanation of how this works.
|
||||||
if [[ ${KOKORO_GFILE_DIR:-} ]] && [[ -f "${KOKORO_GFILE_DIR}/distdir/googletest_vendor.tar.gz" ]]; then
|
if [[ ${KOKORO_GFILE_DIR:-} ]] && [[ -f "${KOKORO_GFILE_DIR}/distdir/googletest_vendor.tar.gz" ]]; then
|
||||||
DOCKER_EXTRA_ARGS="--mount type=bind,source=${KOKORO_GFILE_DIR}/distdir,target=/distdir,readonly --env=BAZEL_VENDOR_ARCHIVE=/distdir/googletest_vendor.tar.gz ${DOCKER_EXTRA_ARGS:-}"
|
DOCKER_EXTRA_ARGS="--mount type=bind,source=${KOKORO_GFILE_DIR}/distdir,target=/distdir,readonly --env=BAZEL_VENDOR_ARCHIVE=/distdir/googletest_vendor.tar.gz ${DOCKER_EXTRA_ARGS:-}"
|
||||||
BAZEL_EXTRA_ARGS="--vendor_dir=/googletest_vendor ${BAZEL_EXTRA_ARGS:-}"
|
BAZEL_EXTRA_ARGS="--vendor_dir=/googletest_vendor ${BAZEL_EXTRA_ARGS:-}"
|
||||||
|
|||||||
@ -1187,7 +1187,7 @@ void UniversalTersePrint(const T& value, ::std::ostream* os) {
|
|||||||
// NUL-terminated string.
|
// NUL-terminated string.
|
||||||
template <typename T>
|
template <typename T>
|
||||||
void UniversalPrint(const T& value, ::std::ostream* os) {
|
void UniversalPrint(const T& value, ::std::ostream* os) {
|
||||||
// A workarond for the bug in VC++ 7.1 that prevents us from instantiating
|
// A workaround for the bug in VC++ 7.1 that prevents us from instantiating
|
||||||
// UniversalPrinter with T directly.
|
// UniversalPrinter with T directly.
|
||||||
typedef T T1;
|
typedef T T1;
|
||||||
UniversalPrinter<T1>::Print(value, os);
|
UniversalPrinter<T1>::Print(value, os);
|
||||||
|
|||||||
@ -760,7 +760,7 @@ class ParameterizedTestSuiteRegistry {
|
|||||||
};
|
};
|
||||||
|
|
||||||
// Keep track of what type-parameterized test suite are defined and
|
// Keep track of what type-parameterized test suite are defined and
|
||||||
// where as well as which are intatiated. This allows susequently
|
// where as well as which are intatiated. This allows subsequently
|
||||||
// identifying suits that are defined but never used.
|
// identifying suits that are defined but never used.
|
||||||
class TypeParameterizedTestSuiteRegistry {
|
class TypeParameterizedTestSuiteRegistry {
|
||||||
public:
|
public:
|
||||||
|
|||||||
@ -712,7 +712,7 @@ bool RE::PartialMatch(const char* str, const RE& re) {
|
|||||||
void RE::Init(const char* regex) {
|
void RE::Init(const char* regex) {
|
||||||
pattern_ = regex;
|
pattern_ = regex;
|
||||||
|
|
||||||
// NetBSD (and Android, which takes its regex implemntation from NetBSD) does
|
// NetBSD (and Android, which takes its regex implementation from NetBSD) does
|
||||||
// not include the GNU regex extensions (such as Perl style character classes
|
// not include the GNU regex extensions (such as Perl style character classes
|
||||||
// like \w) in REG_EXTENDED. REG_EXTENDED is only specified to include the
|
// like \w) in REG_EXTENDED. REG_EXTENDED is only specified to include the
|
||||||
// [[:alpha:]] style character classes. Enable REG_GNU wherever it is defined
|
// [[:alpha:]] style character classes. Enable REG_GNU wherever it is defined
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user