Skip to content

Commit c082c06

Browse files
committed
Added the semicolons section of the table of contents, and translate the code part in naming section
Signed-off-by: mrahmiao <mrahmiao@gmail.com>
1 parent 69928ab commit c082c06

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

zh_style_guide.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
* [注释](#注释)
1414
* [命名](#命名)
1515
* [类前缀](#类前缀)
16+
* [分号](#分号)
1617
* [类与结构体](#类与结构体)
1718
* [函数声明](#函数声明)
1819
* [闭包](#闭包)
@@ -122,14 +123,14 @@ class Guideline {
122123
}
123124
```
124125

125-
在文章中(包括教程,书以及评论)提到函数时,请从调用者的视觉来考虑,将所有的必要参数名都包含进来:
126+
在所有提及到函数的文章中(包括教程,书以及评论),请从调用者的视角进行考虑,将所有的必要参数名都包含进来:
126127

127128
```
128-
The dateFromString() function is great.
129-
Call convertPointAt(column:, row:) from your init() method.
130-
The return value of timedAction(delay:, perform:) may be nil.
131-
Guideline objects only have two methods: combineWithString(options:) and upvoteBy()
132-
You shouldn't call the data source method tableView(cellForRowAtIndexPath:) directly.
129+
dateFromString()函数真是太棒了。
130+
在你的init()方法中调用convertPointAt(column:, row:)
131+
timedAction(delay:, perform:)的返回值可能为nil。
132+
Guideline对象只有两个方法:combineWithString(options:)跟upvoteBy()。
133+
你不应该直接调用数据源方法tableView(cellForRowAtIndexPath:)
133134
```
134135

135136
### 类前缀

0 commit comments

Comments
 (0)