Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit f0a3487

Browse files
Merge pull request ryanmcdermott#153 from vsemozhetbyt/naming
fix confusing example
2 parents ab29de6 + 35a0cf8 commit f0a3487

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

‎README.md‎

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -219,17 +219,16 @@ function createMenu(title, body, buttonText, cancellable) {
219219

220220
**Good**:
221221
```javascript
222-
const menuConfig = {
223-
title: 'Foo',
224-
body: 'Bar',
225-
buttonText: 'Baz',
226-
cancellable: true
227-
};
228-
229222
function createMenu(config) {
230223
// ...
231224
}
232225

226+
createMenu({
227+
title: 'Foo',
228+
body: 'Bar',
229+
buttonText: 'Baz',
230+
cancellable: true
231+
});
233232
```
234233
**[⬆ back to top](#table-of-contents)**
235234

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /