fix spelling in public headers

This commit is contained in:
Michael Davidsaver
2020-07-03 19:50:55 -07:00
parent b1b71f1520
commit 479f0f1f4d
12 changed files with 49 additions and 49 deletions
+5 -5
View File
@@ -284,14 +284,14 @@ bool Value::idStartsWith(const std::string& prefix) const
return ID.size()>=prefix.size() && prefix==ID.substr(0u, prefix.size());
}
const std::string &Value::nameOf(const Value& decendent) const
const std::string &Value::nameOf(const Value& descendant) const
{
if(!store || !decendent.store)
if(!store || !descendant.store)
throw NoField();
auto pidx = store->index();
auto didx = decendent.store->index();
auto didx = descendant.store->index();
if(pidx >= didx || didx >= store->top->members.size())
throw std::logic_error("not a decendent");
throw std::logic_error("not a descendant");
// inefficient, but we don't keep a reverse mapping
for(auto& it : desc->mlookup) {
@@ -299,7 +299,7 @@ const std::string &Value::nameOf(const Value& decendent) const
return it.first;
}
throw std::logic_error("missing decendent");
throw std::logic_error("missing descendant");
}
namespace {