From 96afb62dfb2b37ff2b5a1c3ed372aa614ebe2834 Mon Sep 17 00:00:00 2001 From: EnokMan <416828041@qq.com> Date: Sun, 17 Feb 2019 13:15:19 +0800 Subject: [PATCH] Add code block language decoration to StyleGuide doc (#1799) --- website/style_guide.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/website/style_guide.md b/website/style_guide.md index d2cbbbf30d..bb0a643ef4 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"; }