summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/gdscript_analyzer.cpp
diff options
context:
space:
mode:
authorLunarisnia <r.arswendo.r@gmail.com>2023-10-17 01:29:26 +0700
committerLunarisnia <r.arswendo.r@gmail.com>2023-10-17 01:33:37 +0700
commit981c6c94c06aa768d5b4c539cb7f224bba71b9a2 (patch)
tree54382eb7fc16225b2821f8b5517fe2476e79f8cb /modules/gdscript/gdscript_analyzer.cpp
parenta60fc7f7c86daad48a8b23c9e4e1fe49cf3a0881 (diff)
downloadredot-engine-981c6c94c06aa768d5b4c539cb7f224bba71b9a2.tar.gz
Fix grammar typo in GDScript error message
Diffstat (limited to 'modules/gdscript/gdscript_analyzer.cpp')
-rw-r--r--modules/gdscript/gdscript_analyzer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gdscript/gdscript_analyzer.cpp b/modules/gdscript/gdscript_analyzer.cpp
index 831971c3f3..e511a97f30 100644
--- a/modules/gdscript/gdscript_analyzer.cpp
+++ b/modules/gdscript/gdscript_analyzer.cpp
@@ -4336,7 +4336,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);
}
}