diff options
author | EnokMan <416828041@qq.com> | 2019-02-17 13:15:19 +0800 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2019-02-17 00:15:19 -0500 |
commit | 96afb62dfb2b37ff2b5a1c3ed372aa614ebe2834 (patch) | |
tree | e9f5621e504d6f31548560b51d83f22188d2285b | |
parent | 9fb9048c737bbc5eb4dfa42a506bfc978316ac10 (diff) |
Add code block language decoration to StyleGuide doc (#1799)
-rw-r--r-- | website/style_guide.md | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/website/style_guide.md b/website/style_guide.md index d2cbbbf30..bb0a643ef 100644 --- a/website/style_guide.md +++ b/website/style_guide.md @@ -150,7 +150,7 @@ export function pwrite(options: PWrite) {} TODO comments should be include an issue or the author's github username in parentheses. Example: -``` +```ts // TODO(ry) Add tests. // TODO(#123) Support Windows. ``` @@ -159,7 +159,7 @@ parentheses. Example: Most files in `deno_std` should have the following copyright header: -``` +```ts // Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. ``` @@ -173,7 +173,7 @@ limited to closures. Bad -``` +```ts export const foo(): string => { return "bar"; } @@ -181,7 +181,7 @@ export const foo(): string => { Good -``` +```ts export function foo(): string { return "bar"; } |