docs: fix possible typo AFAIK (#6341)

master
JounQin 2019-07-30 17:48:14 +08:00 committed by Simon Lydell
parent 998f98aade
commit e5fbef238d
7 changed files with 17 additions and 17 deletions

View File

@ -7,13 +7,13 @@ printWidth: 80
| printWidth
=====================================input======================================
function f() {
const appEntitys = getAppEntitys(loadObject).filter(
const appEntities = getAppEntities(loadObject).filter(
entity => entity && entity.isInstallAvailable() && !entity.isQueue() && entity.isDisabled()
)
}
function f() {
const appEntitys = getAppEntitys(loadObject).map(
const appEntities = getAppEntities(loadObject).map(
entity => entity && entity.isInstallAvailable() && !entity.isQueue() && entity.isDisabled() && {
id: entity.id
}
@ -22,7 +22,7 @@ function f() {
=====================================output=====================================
function f() {
const appEntitys = getAppEntitys(loadObject).filter(
const appEntities = getAppEntities(loadObject).filter(
entity =>
entity &&
entity.isInstallAvailable() &&
@ -32,7 +32,7 @@ function f() {
}
function f() {
const appEntitys = getAppEntitys(loadObject).map(
const appEntities = getAppEntities(loadObject).map(
entity =>
entity &&
entity.isInstallAvailable() &&
@ -75,14 +75,14 @@ printWidth: 80
| printWidth
=====================================input======================================
a = (
// Commment 1
// Comment 1
(Math.random() * (yRange * (1 - minVerticalFraction)))
+ (minVerticalFraction * yRange)
) - offset;
=====================================output=====================================
a =
// Commment 1
// Comment 1
Math.random() * (yRange * (1 - minVerticalFraction)) +
minVerticalFraction * yRange -
offset;

View File

@ -1,11 +1,11 @@
function f() {
const appEntitys = getAppEntitys(loadObject).filter(
const appEntities = getAppEntities(loadObject).filter(
entity => entity && entity.isInstallAvailable() && !entity.isQueue() && entity.isDisabled()
)
}
function f() {
const appEntitys = getAppEntitys(loadObject).map(
const appEntities = getAppEntities(loadObject).map(
entity => entity && entity.isInstallAvailable() && !entity.isQueue() && entity.isDisabled() && {
id: entity.id
}

View File

@ -1,5 +1,5 @@
a = (
// Commment 1
// Comment 1
(Math.random() * (yRange * (1 - minVerticalFraction)))
+ (minVerticalFraction * yRange)
) - offset;

View File

@ -429,7 +429,7 @@ export const foo = {
<Foo bg='red'>
<Bar >hi </Bar>
{ hello }
{ /* another commment */}
{ /* another comment */}
</Foo>
\`\`\`
@ -468,7 +468,7 @@ I'm an awesome paragraph.
<Foo bg="red">
<Bar>hi </Bar>
{hello}
{/* another commment */}
{/* another comment */}
</Foo>
\`\`\`
@ -520,7 +520,7 @@ export const foo = {
<Foo bg='red'>
<Bar >hi </Bar>
{ hello }
{ /* another commment */}
{ /* another comment */}
</Foo>
\`\`\`
@ -559,7 +559,7 @@ I'm an awesome paragraph.
<Foo bg="red">
<Bar>hi </Bar>
{hello}
{/* another commment */}
{/* another comment */}
</Foo>
\`\`\`

View File

@ -19,7 +19,7 @@ export const foo = {
<Foo bg='red'>
<Bar >hi </Bar>
{ hello }
{ /* another commment */}
{ /* another comment */}
</Foo>
```

View File

@ -950,13 +950,13 @@ let {
```js
// Before
a = Math.random() * (yRange * (1 - minVerticalFraction)) +
minVerticalFraction * yRange// Commment
minVerticalFraction * yRange// Comment
-
offset;
// After
a =
// Commment
// Comment
Math.random() * (yRange * (1 - minVerticalFraction)) +
minVerticalFraction * yRange -
offset;

View File

@ -194,7 +194,7 @@ export default function(parser) {
"<Foo bg='red'>",
" <Bar >hi </Bar>",
" { hello }",
" { /* another commment */}",
" { /* another comment */}",
"</Foo>",
"",
"```",