mirror of
https://github.com/rust-lang-cn/book-cn.git
synced 2025-01-23 23:50:25 +08:00
Update ch04-02-ownership.md
This commit is contained in:
parent
aa8e2305c4
commit
5c106c9c23
@ -21,8 +21,8 @@ some examples, focusing on a very common data structure: strings.
|
||||
## Variable binding scope
|
||||
|
||||
We've walked through an example of a Rust program already in the tutorial chapter.
|
||||
Now that we’re past basic syntax, we won’t include all of the fn main() { stuff in
|
||||
examples, so if you’re following along, you will have to put them inside of a main()
|
||||
Now that we’re past basic syntax, we won’t include all of the `fn main() {` stuff in
|
||||
examples, so if you’re following along, you will have to put them inside of a `main()`
|
||||
function. This lets our examples be a bit more concise, letting us focus on the actual
|
||||
details rather than boilerplate.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user