Skip to content

Commit

Permalink
Merge pull request ryanmcdermott#288 from sbimochan/patch-1
Browse files Browse the repository at this point in the history
Change argument name from inner variable name
  • Loading branch information
ryanmcdermott authored Jul 31, 2020
2 parents c56cc59 + 8491866 commit 4d15e1c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,7 @@ const menuConfig = {
};
function createMenu(config) {
config = Object.assign(
let finalConfig = Object.assign(
{
title: "Foo",
body: "Bar",
Expand All @@ -552,7 +552,7 @@ function createMenu(config) {
},
config
);
return finalConfig
// config now equals: {title: "Order", body: "Bar", buttonText: "Send", cancellable: true}
// ...
}
Expand Down

0 comments on commit 4d15e1c

Please sign in to comment.