Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix "everytime" typos. #857

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/easylogging++.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1845,7 +1845,7 @@ bool RegisteredHitCounters::validateEveryN(const char* filename, base::type::Lin
}

/// @brief Validates counter for hits >= N, i.e, registers new if does not exist otherwise updates original one
/// @return True if validation resulted in triggering hit. Meaning logs should be written everytime true is returned
/// @return True if validation resulted in triggering hit. Meaning logs should be written every time true is returned
bool RegisteredHitCounters::validateAfterN(const char* filename, base::type::LineNumber lineNumber, std::size_t n) {
base::threading::ScopedLock scopedLock(lock());
base::HitCounter* counter = get(filename, lineNumber);
Expand All @@ -1862,7 +1862,7 @@ bool RegisteredHitCounters::validateAfterN(const char* filename, base::type::Lin
}

/// @brief Validates counter for hits are <= n, i.e, registers new if does not exist otherwise updates original one
/// @return True if validation resulted in triggering hit. Meaning logs should be written everytime true is returned
/// @return True if validation resulted in triggering hit. Meaning logs should be written every time true is returned
bool RegisteredHitCounters::validateNTimes(const char* filename, base::type::LineNumber lineNumber, std::size_t n) {
base::threading::ScopedLock scopedLock(lock());
base::HitCounter* counter = get(filename, lineNumber);
Expand Down
6 changes: 3 additions & 3 deletions src/easylogging++.h
Original file line number Diff line number Diff line change
Expand Up @@ -2118,15 +2118,15 @@ class HitCounter {
class RegisteredHitCounters : public base::utils::RegistryWithPred<base::HitCounter, base::HitCounter::Predicate> {
public:
/// @brief Validates counter for every N, i.e, registers new if does not exist otherwise updates original one
/// @return True if validation resulted in triggering hit. Meaning logs should be written everytime true is returned
/// @return True if validation resulted in triggering hit. Meaning logs should be written every time true is returned
bool validateEveryN(const char* filename, base::type::LineNumber lineNumber, std::size_t n);

/// @brief Validates counter for hits >= N, i.e, registers new if does not exist otherwise updates original one
/// @return True if validation resulted in triggering hit. Meaning logs should be written everytime true is returned
/// @return True if validation resulted in triggering hit. Meaning logs should be written every time true is returned
bool validateAfterN(const char* filename, base::type::LineNumber lineNumber, std::size_t n);

/// @brief Validates counter for hits are <= n, i.e, registers new if does not exist otherwise updates original one
/// @return True if validation resulted in triggering hit. Meaning logs should be written everytime true is returned
/// @return True if validation resulted in triggering hit. Meaning logs should be written every time true is returned
bool validateNTimes(const char* filename, base::type::LineNumber lineNumber, std::size_t n);

/// @brief Gets hit counter registered at specified position
Expand Down