From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:36617) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RL7of-0002Ir-BP for qemu-devel@nongnu.org; Tue, 01 Nov 2011 02:27:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RL7od-0004I1-Mm for qemu-devel@nongnu.org; Tue, 01 Nov 2011 02:27:20 -0400 Received: from mtagate3.uk.ibm.com ([194.196.100.163]:45359) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RL7od-0004Hl-Cc for qemu-devel@nongnu.org; Tue, 01 Nov 2011 02:27:19 -0400 Received: from d06nrmr1806.portsmouth.uk.ibm.com (d06nrmr1806.portsmouth.uk.ibm.com [9.149.39.193]) by mtagate3.uk.ibm.com (8.13.1/8.13.1) with ESMTP id pA16RIWU028049 for ; Tue, 1 Nov 2011 06:27:18 GMT Received: from d06av03.portsmouth.uk.ibm.com (d06av03.portsmouth.uk.ibm.com [9.149.37.213]) by d06nrmr1806.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id pA16RIVQ2498666 for ; Tue, 1 Nov 2011 06:27:18 GMT Received: from d06av03.portsmouth.uk.ibm.com (localhost.localdomain [127.0.0.1]) by d06av03.portsmouth.uk.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id pA16RHs6025839 for ; Tue, 1 Nov 2011 00:27:18 -0600 From: Stefan Hajnoczi Date: Tue, 1 Nov 2011 06:27:09 +0000 Message-Id: <1320128830-25943-4-git-send-email-stefanha@linux.vnet.ibm.com> In-Reply-To: <1320128830-25943-1-git-send-email-stefanha@linux.vnet.ibm.com> References: <1320128830-25943-1-git-send-email-stefanha@linux.vnet.ibm.com> Subject: [Qemu-devel] [PATCH 3/4] qapi: fix typos in documentation JSON examples List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Anthony Liguori , Stefan Hajnoczi Signed-off-by: Stefan Hajnoczi --- docs/qapi-code-gen.txt | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/qapi-code-gen.txt b/docs/qapi-code-gen.txt index f345866..c0a9325 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. -- 1.7.7