typos fixed

This commit is contained in:
2021-08-14 17:30:24 +02:00
parent fc0ce36e8d
commit efb4ee1648
7 changed files with 17 additions and 10 deletions

View File

@@ -24,11 +24,12 @@ Table::Table(const Table &other) {
ColDefNode Table::get_column_def(const std::string &col_name) {
auto name_cmp = [col_name](const ColDefNode& cd) { return cd.name == col_name; };
auto col_def = std::find_if(begin(m_col_defs), end(m_col_defs), name_cmp);
if (col_def != std::end(m_col_defs)) {
return *col_def;
} else {
throw Exception("column not exists (" + col_name + ")");
throw Exception("column does not exist (" + col_name + ")");
}
}