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:
parent
9fb9048c73
commit
96afb62dfb
1 changed files with 4 additions and 4 deletions
|
@ -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";
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue