]> Git Repo - qemu.git/commitdiff
docs/devel/qapi-code-gen: Fix typo in grammar
authorMarkus Armbruster <[email protected]>
Mon, 9 Mar 2020 14:26:38 +0000 (15:26 +0100)
committerMarkus Armbruster <[email protected]>
Tue, 17 Mar 2020 16:34:21 +0000 (17:34 +0100)
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: b6c37ebaaf074cac8fe8a4781dc3e79db23e914e
Reported-by: John Snow <[email protected]>
Signed-off-by: Markus Armbruster <[email protected]>
Message-Id: <20200309142638[email protected]>
Reviewed-by: John Snow <[email protected]>
docs/devel/qapi-code-gen.txt

index 59d6973e1ec38be6e2a5cb2476816a2b7f730c34..e73979e1828ded738afa4366500e1ae6c099d7ae 100644 (file)
@@ -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.
This page took 0.029963 seconds and 4 git commands to generate.