Skip to content

Commit c697216

Browse files
committed
Don't leave commented out code in your codebase
1 parent ad29269 commit c697216

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

README-zh-CN.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2254,18 +2254,20 @@ function hashIt(data) {
22542254
```
22552255
**[⬆ 返回顶部](#代码整洁的-javascript)**
22562256

2257-
### Don't leave commented out code in your codebase
2257+
### 不要在代码库中保存注释掉的代码
22582258
Version control exists for a reason. Leave old code in your history.
22592259

2260-
**Bad:**
2260+
因为有版本控制, 把旧的代码留在历史记录即可。
2261+
2262+
**不好的:**
22612263
```javascript
22622264
doStuff();
22632265
// doOtherStuff();
22642266
// doSomeMoreStuff();
22652267
// doSoMuchStuff();
22662268
```
22672269

2268-
**Good**:
2270+
**好的:**
22692271
```javascript
22702272
doStuff();
22712273
```

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy