mirror of
https://github.com/ruanyf/es6tutorial.git
synced 2025-05-24 18:32:22 +00:00
function.md 中一处示例的单引号写错了
示例中写的是中文全角的单引号,正确的应该是英文的单引号
This commit is contained in:
parent
e80ed65180
commit
cd1bb10a1b
@ -497,7 +497,7 @@ const full = ({ first, last }) => first + ' ' + last;
|
||||
|
||||
// 等同于
|
||||
function full( person ){
|
||||
return person.first + ‘ ‘ + person.name;
|
||||
return person.first + ' ' + person.name;
|
||||
}
|
||||
```
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user