From 2b535a1622a5ec38d007cee910f403eda1af9027 Mon Sep 17 00:00:00 2001 From: James Bell Date: Sun, 4 Oct 2015 10:44:00 +0100 Subject: [PATCH] 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. --- src/doc/trpl/rust-inside-other-languages.md | 1 - 1 file changed, 1 deletion(-) diff --git a/src/doc/trpl/rust-inside-other-languages.md b/src/doc/trpl/rust-inside-other-languages.md index 8dd2e365aa8..47e1df37dff 100644 --- a/src/doc/trpl/rust-inside-other-languages.md +++ b/src/doc/trpl/rust-inside-other-languages.md @@ -119,7 +119,6 @@ fn process() { println!("Thread finished with count={}", h.join().map_err(|_| "Could not join a thread!").unwrap()); } - println!("done!"); } ```