Skip to content

Commit

Permalink
翻译:移动“风格指南”
Browse files Browse the repository at this point in the history
  • Loading branch information
Nugine committed May 12, 2020
1 parent f8010f1 commit 6de38e7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -170,7 +170,7 @@ export function pwrite(options: PWrite) {}

我们力求文档的完整性。理想情况下,每个导出的文档符号都应该有一个文档行。

如果可能的话,最好在 JS Doc 中使用一行代码。例如:
如果可能的话,最好写单行 JSDoc。例如:

```ts
/** foo does bar. */
Expand Down Expand Up @@ -247,7 +247,7 @@ Deno.test("myTestFunction" function() {
});
```

## 顶级函数不应使用箭头(arrow)语法
## 顶级函数不应使用箭头语法

顶级函数应使用 `function` 关键字。箭头语法应限于闭包。

Expand Down
File renamed without changes.

0 comments on commit 6de38e7

Please sign in to comment.