From: Stefan Hajnoczi Date: Fri, 28 Oct 2011 14:58:26 +0000 (+0100) Subject: qapi: fix typos in documentation JSON examples X-Git-Tag: Tizen_Studio_1.3_Release_p2.3.1~1405^2~17^2~1440^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=acf8394eaed69f23d39b0ebbb20477aef1afcbb2;p=sdk%2Femulator%2Fqemu.git qapi: fix typos in documentation JSON examples Signed-off-by: Stefan Hajnoczi --- diff --git a/docs/qapi-code-gen.txt b/docs/qapi-code-gen.txt index f345866f57..c0a9325db8 100644 --- a/docs/qapi-code-gen.txt +++ b/docs/qapi-code-gen.txt @@ -41,7 +41,7 @@ dictionary. This corresponds to a struct in C or an Object in JSON. An example of a complex type is: { 'type': 'MyType', - 'data' { 'member1': 'str', 'member2': 'int', '*member3': 'str } } + 'data': { 'member1': 'str', 'member2': 'int', '*member3': 'str' } } The use of '*' as a prefix to the name means the member is optional. Optional members should always be added to the end of the dictionary to preserve @@ -63,7 +63,7 @@ An example command is: { 'command': 'my-command', 'data': { 'arg1': 'str', '*arg2': 'str' }, - 'returns': 'str' ] + 'returns': 'str' } Command names should be all lower case with words separated by a hyphen.