mirror of
https://github.com/rust-lang/rustlings.git
synced 2025-11-29 22:47:43 +02:00
Fix typos
This commit is contained in:
@@ -3,7 +3,7 @@ trait AppendBar {
|
||||
}
|
||||
|
||||
// TODO: Implement the trait `AppendBar` for a vector of strings.
|
||||
// `appned_bar` should push the string "Bar" into the vector.
|
||||
// `append_bar` should push the string "Bar" into the vector.
|
||||
|
||||
fn main() {
|
||||
// You can optionally experiment here.
|
||||
|
||||
@@ -18,7 +18,7 @@ impl Queue {
|
||||
|
||||
fn send_tx(q: Queue, tx: mpsc::Sender<u32>) {
|
||||
// TODO: We want to send `tx` to both threads. But currently, it is moved
|
||||
// into the frist thread. How could you solve this problem?
|
||||
// into the first thread. How could you solve this problem?
|
||||
thread::spawn(move || {
|
||||
for val in q.first_half {
|
||||
println!("Sending {val:?}");
|
||||
|
||||
Reference in New Issue
Block a user