8000 不要在一行结尾留下空白 · PaPazhao/swift-style-guide@e98789a · GitHub
[go: up one dir, main page]

Skip to content

Commit e98789a

Browse files
committed
不要在一行结尾留下空白
1 parent b337564 commit e98789a

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

README_CN.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1-
郑重声明:
2-
如果看不懂,估计是我翻译的不好
3-
233333
1+
郑重声明:
2+
如果看不懂,估计是我翻译的不好
3+
233333
44

5-
##[原版](https://github.com/github/swift-style-guide) 戳这里
5+
##[原版](https://github.com/github/swift-style-guide) 戳这里
66

7-
哪里不对或者不准确的,若能指出(我把原文贴上来了,用来对照 2015-12-13)
8-
感激不尽~~~
7+
哪里不对或者不准确的,若能指出(我把原文贴上来了,用来对照 2015-12-13)
8+
感激不尽~~~
99

10-
如果没能及时更新,可能比较忙,或者比较懒 →_
10+
如果没能及时更新,可能比较忙,或者比较懒 →_
1111
可以 `Email` 或 翻译后,`pull request`
1212

1313

1414
---
1515

16-
#Swift 编码规范
16+
#Swift 编码规范
1717

1818
A guide to our Swift style and conventions.
1919

@@ -80,9 +80,9 @@ Accordingly, whenever you see a `var` identifier being used, assume that it will
8080
这样,无论何时你看到 `var`,就假设它会变,并问自己为啥。
8181

8282
#### Return and break early
83-
#### 尽早地 `Return` 或者 `break`
83+
#### 尽早地 `Return` 或者 `break`
8484

85-
When you have to meet certain criteria to continue execution, try to exit early. So, instead of this:
85+
When you have to meet certain criteria to continue execution, try to exit early. So, instead of this:
8686

8787
当你遇到某些操作需要通过条件判断去执行,应当尽早地退出判断条件:你不应该用下面这种写法
8888

@@ -106,7 +106,7 @@ You can also do it with `if` statement, but using `guard` is prefered, because `
106106

107107
或者你也可以用 `if` 声明,但是我们推荐你使用 `guard`
108108

109-
_理由:_ 你一但声明 `guard` 编译器会强制要求你和 `return`, `break` 或者 `continue` 一起搭配使用,否则会产生一个编译时的错误。
109+
_理由:_ 你一但声明 `guard` 编译器会强制要求你和 `return`, `break` 或者 `continue` 一起搭配使用,否则会产生一个编译时的错误。
110110

111111

112112
#### Avoid Using Force-Unwrapping of Optionals

0 commit comments

Comments
 (0)
0