Skip to content

Commit 06595a2

Browse files
committed
Merge pull request airbnb#657 from mccambridge/master
[guide] clarity in destructuring code example
2 parents 286e845 + 5204753 commit 06595a2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -378,8 +378,8 @@ Other Style Guides
378378
}
379379
380380
// good
381-
function getFullName(obj) {
382-
const { firstName, lastName } = obj;
381+
function getFullName(user) {
382+
const { firstName, lastName } = user;
383383
return `${firstName} ${lastName}`;
384384
}
385385

0 commit comments

Comments
 (0)