From c4169cac7904fc029ffb2a0ba466531f6c29cb35 Mon Sep 17 00:00:00 2001 From: fxy060608 Date: Thu, 1 Sep 2022 15:10:19 +0800 Subject: [PATCH] docs: update syntax-uts.md --- docs/tutorial/syntax-uts.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/tutorial/syntax-uts.md b/docs/tutorial/syntax-uts.md index 1d25d4536..4d8da1b39 100644 --- a/docs/tutorial/syntax-uts.md +++ b/docs/tutorial/syntax-uts.md @@ -1922,6 +1922,7 @@ foo.split(' '); 举例: ```js +// js 求和两个数字 function add(left, right) { return left + right; } @@ -1930,6 +1931,7 @@ function add(left, right) { 补充类型批注后,即可变成 uts 代码 ```ts +// uts 求和 function add(left: number, right: number): number { return left + right; } -- GitLab