diff options
author | Krystian Kuzniarek <krystian.kuzniarek@gmail.com> | 2019-08-12 05:09:50 (GMT) |
---|---|---|
committer | Krystian Kuzniarek <krystian.kuzniarek@gmail.com> | 2019-08-20 10:14:22 (GMT) |
commit | 7bd4a7f3e9ae46bb7d99fc5fd5dd1a137496bb6a (patch) | |
tree | 417695a92848a803682b722f2a6d286e28eeb482 /googletest/samples | |
parent | c9ccac7cb7345901884aabf5d1a786cfa6e2f397 (diff) | |
download | googletest-7bd4a7f3e9ae46bb7d99fc5fd5dd1a137496bb6a.zip googletest-7bd4a7f3e9ae46bb7d99fc5fd5dd1a137496bb6a.tar.gz googletest-7bd4a7f3e9ae46bb7d99fc5fd5dd1a137496bb6a.tar.bz2 |
restore mistakenly removed iffs in their explicit formrefs/pull/2387/head
Due to confusion arisen from "iff" standing for "if and only if",
this commit uses the latter.
Diffstat (limited to 'googletest/samples')
-rw-r--r-- | googletest/samples/prime_tables.h | 2 | ||||
-rw-r--r-- | googletest/samples/sample1.cc | 2 | ||||
-rw-r--r-- | googletest/samples/sample1.h | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/googletest/samples/prime_tables.h b/googletest/samples/prime_tables.h index 4178e70..72539bf 100644 --- a/googletest/samples/prime_tables.h +++ b/googletest/samples/prime_tables.h @@ -43,7 +43,7 @@ class PrimeTable { public: virtual ~PrimeTable() {} - // Returns true if n is a prime number. + // Returns true if and only if n is a prime number. virtual bool IsPrime(int n) const = 0; // Returns the smallest prime number greater than p; or returns -1 diff --git a/googletest/samples/sample1.cc b/googletest/samples/sample1.cc index 58dbf17..1d42759 100644 --- a/googletest/samples/sample1.cc +++ b/googletest/samples/sample1.cc @@ -41,7 +41,7 @@ int Factorial(int n) { return result; } -// Returns true if n is a prime number. +// Returns true if and only if n is a prime number. bool IsPrime(int n) { // Trivial case 1: small numbers if (n <= 1) return false; diff --git a/googletest/samples/sample1.h b/googletest/samples/sample1.h index a90eae4..12e49de 100644 --- a/googletest/samples/sample1.h +++ b/googletest/samples/sample1.h @@ -35,7 +35,7 @@ // Returns n! (the factorial of n). For negative n, n! is defined to be 1. int Factorial(int n); -// Returns true if n is a prime number. +// Returns true if and only if n is a prime number. bool IsPrime(int n); #endif // GTEST_SAMPLES_SAMPLE1_H_ |