]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[962-implement-the-multi_threading_mgr-h-idea] Fixed trivial typo in comment
authorFrancis Dupont <fdupont@isc.org>
Tue, 22 Oct 2019 20:45:42 +0000 (22:45 +0200)
committerFrancis Dupont <fdupont@isc.org>
Wed, 23 Oct 2019 15:15:40 +0000 (17:15 +0200)
src/lib/util/multi_threading_mgr.h

index 4cbe6aee44a4500e3c68e254f5acc2ac687c2d25..4cf8ea360b1ce70e72ff3431937c1ba81aa9e3b5 100644 (file)
@@ -21,7 +21,7 @@ namespace util {
 ///
 /// The standard way to use it is:
 /// @code
-/// if (MultiThreadingMgr::instance().getMode) {
+/// if (MultiThreadingMgr::instance().getMode()) {
 ///     multi-threaded code
 /// } else {
 ///     single-threaded code
@@ -35,7 +35,7 @@ namespace util {
 /// } // end of locked namespace
 ///
 /// void foo() {
-///     if (MultiThreadingMgr::instance().getMode) {
+///     if (MultiThreadingMgr::instance().getMode()) {
 ///         lock_guard<mutex> lock(mutex_);
 ///         locked::foo();
 ///     } else {