Skip to content

Commit

Permalink
Merge pull request #414 from veekxt/patch-3
Browse files Browse the repository at this point in the history
fix typo (coding-style、any)
  • Loading branch information
MarisaKirisame committed May 24, 2016
2 parents 89ba76b + 305a428 commit d8bd1d2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion any/any.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Any和反射

熟悉Java的同学肯定对Java的反射能力记忆尤新,同样的,Rust也提供了运行时反射的能力。但是,这里有点小小的不同,因为 Rust 不带 VM 不带 Runtime ,因此,其提供的反射更像是一种编译时反射。
熟悉Java的同学肯定对Java的反射能力记忆犹新,同样的,Rust也提供了运行时反射的能力。但是,这里有点小小的不同,因为 Rust 不带 VM 不带 Runtime ,因此,其提供的反射更像是一种编译时反射。

因为,Rust只能对 `'static` 生命周期的变量(常量)进行反射!

Expand Down
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 d8bd1d2

Please sign in to comment.