From fe7f157b30a7f58281ee3dbd3c737f58972789fa Mon Sep 17 00:00:00 2001 From: hh Date: Sat, 6 Mar 2021 09:53:18 +0800 Subject: [PATCH] update readme --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 92835ae8..0a80619d 100644 --- a/README.md +++ b/README.md @@ -97,7 +97,7 @@ The compiler outputs results in a JSON file. It’s a representation used to bui "C:\\Users\\sCrypt\\code\\project\\util.scrypt" "C:\\Users\\sCrypt\\code\\project\\contract.scrypt" ], - "sourceMap": [ //sourceMap, you need to enable sourceMap setting in sCrypt IDE, default is disable. + "sourceMap": [ //sourceMap, you need to enable sourceMap setting in sCrypt IDE, default is disabled. "0:76:53:76:58", ... ] @@ -121,7 +121,7 @@ There are two ways to generate this file (named as `xxx_desc.json`): desc: true // set this flag to be `true` to get the description file output asm: true // set this flag to be `true` to get the asm file output optimize: false //set this flag to be `true` to get optimized asm opcode - sourceMap: true //set this flag to be `true` to get source Map + sourceMap: true //set this flag to be `true` to get source map } ); ``` @@ -164,7 +164,7 @@ Note that `parameters` in both constructor and function call are mapped to sCryp In this way, the type of parameters could be checked and potential bugs can be detected before running. -Other complex types are the structure and type aliases of user positioning. They need to be dynamically generated and you can use `buildTypeClasses` to do that. +Composite types, including structs and type aliases, are dynamically generated by `buildTypeClasses`. ```typescript const {Person, Male, Female} = buildTypeClasses(JSON.parse(descFileContent));