Skip to content

Commit 2b535a1

Browse files
committed
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.
1 parent 130851e commit 2b535a1

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/doc/trpl/rust-inside-other-languages.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,6 @@ fn process() {
119119
println!("Thread finished with count={}",
120120
h.join().map_err(|_| "Could not join a thread!").unwrap());
121121
}
122-
println!("done!");
123122
}
124123
```
125124

0 commit comments

Comments
 (0)