mirror of
https://github.com/rust-lang-cn/book-cn.git
synced 2025-01-23 23:50:25 +08:00
"Long enough" could be ambiguous in this case
We get to use underscores in variable bindings once we have a year's experience with them or?
This commit is contained in:
parent
1cf14f2baf
commit
8730203bff
@ -8,8 +8,8 @@ declare new functions.
|
|||||||
Rust code uses *snake case* as the conventional style for function names. In
|
Rust code uses *snake case* as the conventional style for function names. In
|
||||||
snake case, all letters are lower case, and there are underscores separating
|
snake case, all letters are lower case, and there are underscores separating
|
||||||
words. (Rust also uses snake case for the names of variable bindings; we just
|
words. (Rust also uses snake case for the names of variable bindings; we just
|
||||||
haven't used any variable bindings long enough to need underscores yet). Here's
|
haven't used any variable bindings with enough letters to need underscores
|
||||||
a program containing an example function definition:
|
yet). Here's a program containing an example function definition:
|
||||||
|
|
||||||
```rust
|
```rust
|
||||||
fn main() {
|
fn main() {
|
||||||
|
Loading…
Reference in New Issue
Block a user