mirror of https://github.com/KaiserY/trpl-zh-cn
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
7 lines
260 B
7 lines
260 B
2 years ago
|
$ cargo run
|
||
|
Compiling closure-example v0.1.0 (file:///projects/closure-example)
|
||
|
Finished dev [unoptimized + debuginfo] target(s) in 0.43s
|
||
|
Running `target/debug/closure-example`
|
||
|
Before defining closure: [1, 2, 3]
|
||
|
After calling closure: [1, 2, 3, 7]
|