diff --git a/src/config.cpp b/src/config.cpp index 14918764f355..caec3427d075 100644 --- a/src/config.cpp +++ b/src/config.cpp @@ -306,7 +306,7 @@ void config::append(config&& cfg) values_[v.first] = v.second; } } - cfg.clear_attibutes(); + cfg.clear_attributes(); } void config::append_children_by_move(config& cfg, const std::string& key) @@ -819,7 +819,7 @@ void config::clear_all_children() ordered_children.clear(); } -void config::clear_attibutes() +void config::clear_attributes() { // No validity check for this function. values_.clear(); diff --git a/src/config.hpp b/src/config.hpp index 5e05fae7a5c6..bf5229429755 100644 --- a/src/config.hpp +++ b/src/config.hpp @@ -527,7 +527,7 @@ class config void clear(); void clear_all_children(); - void clear_attibutes(); + void clear_attributes(); bool empty() const; std::string debug() const;