10000 fix a typo in a parse error message (#14666) · arangodb/arangodb@da700d2 · GitHub
[go: up one dir, main page]

Skip to content

Commit da700d2

Browse files
authored
fix a typo in a parse error message (#14666)
1 parent e6b1770 commit da700d2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

arangod/Aql/grammar.cpp

Original file line numberDiff line numberDiff line change
@@ -2890,7 +2890,7 @@ YYLTYPE yylloc = yyloc_default;
28902890
#line 696 "Aql/grammar.y"
28912891
{
28922892
AstNode* variablesNode = static_cast<AstNode*>((yyvsp[-2].node));
2893-
::checkOutVariables(parser, variablesNode, 1, 1, "Collections and Views only have return variable", yyloc);
2893+
::checkOutVariables(parser, variablesNode, 1, 1, "Collections and views FOR loops only allow a single return variable", yyloc);
28942894
parser->ast()->scopes()->start(arangodb::aql::AQL_SCOPE_FOR);
28952895
// now create an out variable for the FOR statement
28962896
// this prepares us to handle the optional SEARCH condition, which may

arangod/Aql/grammar.y

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -695,7 +695,7 @@ k_paths_graph_info:
695695
for_statement:
696696
T_FOR for_output_variables T_IN expression {
697697
AstNode* variablesNode = static_cast<AstNode*>($2);
698-
::checkOutVariables(parser, variablesNode, 1, 1, "Collections and Views only have return variable", yyloc);
698+
::checkOutVariables(parser, variablesNode, 1, 1, "Collections and views FOR loops only allow a single return variable", yyloc);
699699
parser->ast()->scopes()->start(arangodb::aql::AQL_SCOPE_FOR);
700700
// now create an out variable for the FOR statement
701701
// this prepares us to handle the optional SEARCH condition, which may

0 commit comments

Comments
 (0)
0