fix: missing & typo

This commit is contained in:
Edo 2023-02-21 01:47:35 +01:00 committed by GitHub
parent fd49ece911
commit c5e6d6f1a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -160,7 +160,7 @@ namespace gsc
{
const auto lowered_name = utils::string::to_lower(name);
constexpr auto is_duplicate = [](const std::string s)
constexpr auto is_duplicate = [](const std::string& s)
{
return [s](const builtin_function& f) { return s == f.name; };
};
@ -180,7 +180,7 @@ namespace gsc
{
const auto lowered_name = utils::string::to_lower(name);
constexpr auto is_duplicate = [](const std::string s)
constexpr auto is_duplicate = [](const std::string& s)
{
return [s](const builtin_method& m) { return s == m.name; };
};