mirror of
https://github.com/rust-lang/rust.git
synced 2026-06-02 06:28:20 +03:00
Docs: Removes duplicate output from FFI example
The "Rust Inside Other Languages" page includes a library example. The reference specifies printing "done!" when the code finishes running, and the language examples (Ruby, Python, JS) all do this in their code. However, the Rust library example code *also* does this, so that the examples as written would output "done!" twice. This removes the "done!" from the Rust example code to clarify the docs.
This commit is contained in:
@@ -119,7 +119,6 @@ fn process() {
|
||||
println!("Thread finished with count={}",
|
||||
h.join().map_err(|_| "Could not join a thread!").unwrap());
|
||||
}
|
||||
println!("done!");
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user