Skip to content

Commit

Permalink
docs: fix possible typo AFAIK (#6341)
Browse files Browse the repository at this point in the history
  • Loading branch information
JounQin authored and lydell committed Jul 30, 2019
1 parent 998f98a commit e5fbef2
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 17 deletions.
12 changes: 6 additions & 6 deletions tests/binary-expressions/__snapshots__/jsfmt.spec.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand All @@ -22,7 +22,7 @@ function f() {
=====================================output=====================================
function f() {
const appEntitys = getAppEntitys(loadObject).filter(
const appEntities = getAppEntities(loadObject).filter(
entity =>
entity &&
entity.isInstallAvailable() &&
Expand All @@ -32,7 +32,7 @@ function f() {
}
function f() {
const appEntitys = getAppEntitys(loadObject).map(
const appEntities = getAppEntities(loadObject).map(
entity =>
entity &&
entity.isInstallAvailable() &&
Expand Down Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions tests/binary-expressions/arrow.js
Original file line number Diff line number Diff line change
@@ -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
}
Expand Down
2 changes: 1 addition & 1 deletion tests/binary-expressions/comment.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
a = (
// Commment 1
// Comment 1
(Math.random() * (yRange * (1 - minVerticalFraction)))
+ (minVerticalFraction * yRange)
) - offset;
8 changes: 4 additions & 4 deletions tests/mdx/__snapshots__/jsfmt.spec.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ export const foo = {
<Foo bg='red'>
<Bar >hi </Bar>
{ hello }
{ /* another commment */}
{ /* another comment */}
</Foo>
\`\`\`
Expand Down Expand Up @@ -468,7 +468,7 @@ I'm an awesome paragraph.
<Foo bg="red">
<Bar>hi </Bar>
{hello}
{/* another commment */}
{/* another comment */}
</Foo>
\`\`\`
Expand Down Expand Up @@ -520,7 +520,7 @@ export const foo = {
<Foo bg='red'>
<Bar >hi </Bar>
{ hello }
{ /* another commment */}
{ /* another comment */}
</Foo>
\`\`\`
Expand Down Expand Up @@ -559,7 +559,7 @@ I'm an awesome paragraph.
<Foo bg="red">
<Bar>hi </Bar>
{hello}
{/* another commment */}
{/* another comment */}
</Foo>
\`\`\`
Expand Down
2 changes: 1 addition & 1 deletion tests/mdx/mixed.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const foo = {
<Foo bg='red'>
<Bar >hi </Bar>
{ hello }
{ /* another commment */}
{ /* another comment */}
</Foo>

```
Expand Down
4 changes: 2 additions & 2 deletions website/blog/2017-04-13-1.0.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion website/playground/codeSamples.js
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ export default function(parser) {
"<Foo bg='red'>",
" <Bar >hi </Bar>",
" { hello }",
" { /* another commment */}",
" { /* another comment */}",
"</Foo>",
"",
"```",
Expand Down

0 comments on commit e5fbef2

Please sign in to comment.