1
0
mirror of https://github.com/ruanyf/es6tutorial.git synced 2025-05-24 18:32:22 +00:00

Update function.md

勘误。line:766
原:return person.first + ' ' + person.name;
改:return person.first + ' ' + person.last;
This commit is contained in:
zavven 2016-01-19 18:18:39 +08:00
parent 66603c586e
commit a2ec075b69

View File

@ -763,7 +763,7 @@ const full = ({ first, last }) => first + ' ' + last;
// 等同于 // 等同于
function full( person ){ function full( person ){
return person.first + ' ' + person.name; return person.first + ' ' + person.last;
} }
``` ```