1
Fork 0

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:
James Bell 2015-10-04 10:44:00 +01:00
parent 130851e030
commit 2b535a1622

View file

@ -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!");
} }
``` ```