1
0
mirror of https://github.com/ruanyf/es6tutorial.git synced 2025-05-25 03:02:21 +00:00

Merge pull request #390 from jacty/patch-8

typo
This commit is contained in:
Ruan YiFeng 2017-04-27 19:56:12 +08:00 committed by GitHub
commit c9b9564ca6

View File

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