From 0c1f23500ede9b8c52cf0923d06ad0563cb65520 Mon Sep 17 00:00:00 2001 From: Hwankyu Jhun Date: Thu, 16 May 2024 15:15:56 +0900 Subject: [PATCH] Fix README markdown This patch fixes wrong code implementation. Change-Id: Icfd3ed02ab15f4fd2f20308654b40e8698907759 Signed-off-by: Hwankyu Jhun --- README.md | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index c94e6be..7ec13aa 100755 --- a/README.md +++ b/README.md @@ -557,16 +557,15 @@ To use 'protocol version 2', you must fill **'protocol 2'** in the .tidl file. ### Enum type - - **'enum'** type is added. - - You can declare an **enum** type inside a 'struct' or 'interface' and use it as a member variable or parameter. - ```tidl +- **'enum'** type is added. +- You can declare an **enum** type inside a 'struct' or 'interface' and use it as a member variable or parameter. + ```tidl struct Message { enum Type { T1 = 0, T2, T3 } - Type t; int id; string str; @@ -582,7 +581,7 @@ To use 'protocol version 2', you must fill **'protocol 2'** in the .tidl file. string SayHello(Version ver, string str, Message.Type msg); } ``` -- When using a struct's enum type as a method parameter, it must be specified as **"."**. +- When using a struct's enum type as a method parameter, it must be specified as **'.'**. ### Import another TIDL file @@ -594,7 +593,7 @@ To use 'protocol version 2', you must fill **'protocol 2'** in the .tidl file. import interface Message { - int Send(string name, string msg); + int Send(string name, string msg); } ``` -- 2.7.4