Skip to content

Commit

Permalink
fix typo (coding-style)
Browse files Browse the repository at this point in the history
  • Loading branch information
veekxt committed May 24, 2016
1 parent 89ba76b commit 18c2417
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions coding-style/style.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
## 空白

* 每行不能超出99个字符。
* 缩进用个空格,不用TAB。
* 缩进只用空格,不用TAB。
* 行和文件末尾不要有空白。

### 空格
Expand Down Expand Up @@ -37,7 +37,7 @@ Point { x: 0.1, y: 0.3 }

### 折行

* 对于多行的函数签名,每一新行一个和第一个参数对齐。允许每行多个参数:
* 对于多行的函数签名,每个新行和第一个参数对齐。允许每行多个参数:

``` rust
fn frobnicate(a: Bar, b: Bar,
Expand All @@ -55,7 +55,7 @@ fn foo<T: This,
}
```

* 多行函数调用一般遵循和签名同意的规则。然而,如果最后的参数开始了一个语句块,块的内容可以开始一个新行,缩进一层:
* 多行函数调用一般遵循和签名统一的规则。然而,如果最后的参数开始了一个语句块,块的内容可以开始一个新行,缩进一层:

``` rust
fn foo_bar(a: Bar, b: Bar,
Expand Down

0 comments on commit 18c2417

Please sign in to comment.