diff --git a/README.md b/README.md index e68bae55..5f24d513 100644 --- a/README.md +++ b/README.md @@ -497,7 +497,7 @@ const menuConfig = { }; function createMenu(config) { - config = Object.assign( + let finalConfig = Object.assign( { title: 'Foo', body: 'Bar', @@ -506,7 +506,7 @@ function createMenu(config) { }, config ); - + return finalConfig; // config 現在等同於: {title: 'Order', body: 'Bar', buttonText: 'Send', cancellable: true} // ... }