mirror of
https://github.com/gabime/spdlog.git
synced 2025-09-29 01:29:35 +08:00
fix typo in comment
This commit is contained in:
@@ -37,7 +37,7 @@ const std::string &logger::name() const { return name_; }
|
|||||||
void logger::set_formatter(std::unique_ptr<formatter> f) {
|
void logger::set_formatter(std::unique_ptr<formatter> f) {
|
||||||
for (auto it = sinks_.begin(); it != sinks_.end(); ++it) {
|
for (auto it = sinks_.begin(); it != sinks_.end(); ++it) {
|
||||||
if (std::next(it) == sinks_.end()) {
|
if (std::next(it) == sinks_.end()) {
|
||||||
// last element - we can be move it.
|
// last element - we can move it.
|
||||||
(*it)->set_formatter(std::move(f));
|
(*it)->set_formatter(std::move(f));
|
||||||
break; // to prevent clang-tidy warning
|
break; // to prevent clang-tidy warning
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user