From: Markus Armbruster Date: Mon, 9 Mar 2020 14:26:38 +0000 (+0100) Subject: docs/devel/qapi-code-gen: Fix typo in grammar X-Git-Tag: v5.0.0-rc0~23^2~29 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=942ab6865ab217f370dc2e81415774aabe8b1ea8;p=thirdparty%2Fqemu.git docs/devel/qapi-code-gen: Fix typo in grammar 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 Signed-off-by: Markus Armbruster Message-Id: <20200309142638.19988-1-armbru@redhat.com> Reviewed-by: John Snow --- diff --git a/docs/devel/qapi-code-gen.txt b/docs/devel/qapi-code-gen.txt index 59d6973e1ec..e73979e1828 100644 --- a/docs/devel/qapi-code-gen.txt +++ b/docs/devel/qapi-code-gen.txt @@ -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.