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:
parent
130851e030
commit
2b535a1622
1 changed files with 0 additions and 1 deletions
|
@ -119,7 +119,6 @@ fn process() {
|
||||||
println!("Thread finished with count={}",
|
println!("Thread finished with count={}",
|
||||||
h.join().map_err(|_| "Could not join a thread!").unwrap());
|
h.join().map_err(|_| "Could not join a thread!").unwrap());
|
||||||
}
|
}
|
||||||
println!("done!");
|
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue