diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2023-10-17 16:13:02 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2023-10-17 16:13:02 +0200 |
commit | 109cb8e6973514390901ddc77067979ccb4a59f7 (patch) | |
tree | 2ea5d86348861ca2fa49f55ea105b6555e6839a2 /modules/gdscript/gdscript_analyzer.cpp | |
parent | 3e8dc9df0a161d1a92d3b242ab1a6c4e6e065a70 (diff) | |
parent | 981c6c94c06aa768d5b4c539cb7f224bba71b9a2 (diff) | |
download | redot-engine-109cb8e6973514390901ddc77067979ccb4a59f7.tar.gz |
Merge pull request #83455 from Lunarisnia/fix/gdscript-error-typo
Fix grammar typo in GDScript error message
Diffstat (limited to 'modules/gdscript/gdscript_analyzer.cpp')
-rw-r--r-- | modules/gdscript/gdscript_analyzer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gdscript/gdscript_analyzer.cpp b/modules/gdscript/gdscript_analyzer.cpp index f3f95ba50b..2439e5760c 100644 --- a/modules/gdscript/gdscript_analyzer.cpp +++ b/modules/gdscript/gdscript_analyzer.cpp @@ -4343,7 +4343,7 @@ void GDScriptAnalyzer::reduce_subscript(GDScriptParser::SubscriptNode *p_subscri } } else if (base_type.kind != GDScriptParser::DataType::BUILTIN && !index_type.is_variant()) { if (index_type.builtin_type != Variant::STRING && index_type.builtin_type != Variant::STRING_NAME) { - push_error(vformat(R"(Only String or StringName can be used as index for type "%s", but received a "%s".)", base_type.to_string(), index_type.to_string()), p_subscript->index); + push_error(vformat(R"(Only "String" or "StringName" can be used as index for type "%s", but received "%s".)", base_type.to_string(), index_type.to_string()), p_subscript->index); } } |