Skip to content

Commit 1dcbd35

Browse files
committed
Auto merge of #28832 - sarcas:docs-uneeded-done-in-library-example, r=steveklabnik
"Rust Inside Other Languages" in the Rust book 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 commit removes the "done!" from the Rust example code to tidy up the output to match expectations.
2 parents 130851e + 2b535a1 commit 1dcbd35

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)