Skip to content

Commit

Permalink
Docs: Fix typo in object-curly-newline.md (#8002)
Browse files Browse the repository at this point in the history
It looks like the curly braces got turned into square brackets between the incorrect and correct code examples.
  • Loading branch information
danny-andrews authored and not-an-aardvark committed Jan 31, 2017
1 parent df2351a commit f2be7e3
Showing 1 changed file with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions docs/rules/object-curly-newline.md
Expand Up @@ -356,32 +356,32 @@ Examples of **correct** code for this rule with the `{ "ObjectExpression": "alwa
/*eslint object-curly-newline: ["error", { "ObjectExpression": "always", "ObjectPattern": "never" }]*/
/*eslint-env es6*/

let a = [
];
let b = [
1
];
let c = [
1, 2
];
let d = [
1,
2
];
let e = [
function() {
let a = {
};
let b = {
foo: 1
};
let c = {
foo: 1, bar: 2
};
let d = {
foo: 1,
bar: 2
};
let e = {
foo: function() {
dosomething();
}
];

let [] = obj;
let [f] = obj;
let [g, h] = obj;
let [i,
j] = obj;
let [k = function() {
};

let {} = obj;
let {f} = obj;
let {g, h} = obj;
let {i,
j} = obj;
let {k = function() {
dosomething();
}] = obj;
}} = obj;
```

## Compatibility
Expand Down

0 comments on commit f2be7e3

Please sign in to comment.