1
0
mirror of https://github.com/ruanyf/es6tutorial.git synced 2025-05-24 18:32:22 +00:00
typo
This commit is contained in:
Jacty 2017-04-27 01:13:38 +08:00 committed by GitHub
parent e2867f1956
commit 0cc0ce06bb

View File

@ -196,7 +196,7 @@ function getComplement(color) {
## 实例:消除魔术字符串
魔术字符串指的是,在代码之中多次出现、与代码形成强耦合的某一个具体的字符串或者数值。风格良好的代码,应该尽量消除魔术字符串,由含义清晰的变量代替。
魔术字符串指的是,在代码之中多次出现、与代码形成强耦合的某一个具体的字符串或者数值。风格良好的代码,应该尽量消除魔术字符串,由含义清晰的变量代替。
```javascript
function getArea(shape, options) {