1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-01-21 21:50:00 -05:00

Add code block language decoration to StyleGuide doc (#1799)

This commit is contained in:
EnokMan 2019-02-17 13:15:19 +08:00 committed by Ryan Dahl
parent 9fb9048c73
commit 96afb62dfb

View file

@ -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";
}