Skip to content

Commit

Permalink
docs/devel/qapi-code-gen: Fix typo in grammar
Browse files Browse the repository at this point in the history
An ALTERNATIVE's value can only be a type name.  Arrays are not
supported, yet.  The text gets it right: "The form STRING is shorthand
for { 'type': STRING }."  The grammar doesn't.  Fix it.

Fixes: b6c37eb
Reported-by: John Snow <jsnow@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20200309142638.19988-1-armbru@redhat.com>
Reviewed-by: John Snow <jsnow@redhat.com>
  • Loading branch information
Markus Armbruster committed Mar 17, 2020
1 parent 40c6763 commit 942ab68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/devel/qapi-code-gen.txt
Expand Up @@ -399,7 +399,7 @@ Syntax:
'data': ALTERNATIVES,
'*if': COND }
ALTERNATIVES = { ALTERNATIVE, ... }
ALTERNATIVE = STRING : TYPE-REF
ALTERNATIVE = STRING : STRING
| STRING : { 'type': STRING, '*if': COND }

Member 'alternate' names the alternate type.
Expand Down

0 comments on commit 942ab68

Please sign in to comment.