summaryrefslogtreecommitdiff
path: root/exercises
diff options
context:
space:
mode:
authormo8it <mo8it@proton.me>2024-07-02 14:28:08 +0200
committermo8it <mo8it@proton.me>2024-07-02 14:28:08 +0200
commit6cf75d569bd0dd33a041e37c59cb75d28664bd7b (patch)
tree8cc7805f33006d11e5ff57604c2cb9b666249574 /exercises
parent67ce9b9e56b1d9e8b8b50b9b48c7eebd80b9ec8f (diff)
Fix typos
Diffstat (limited to 'exercises')
-rw-r--r--exercises/15_traits/traits2.rs2
-rw-r--r--exercises/20_threads/threads3.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/exercises/15_traits/traits2.rs b/exercises/15_traits/traits2.rs
index e904016..d724dc2 100644
--- a/exercises/15_traits/traits2.rs
+++ b/exercises/15_traits/traits2.rs
@@ -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.
diff --git a/exercises/20_threads/threads3.rs b/exercises/20_threads/threads3.rs
index 30ac8dd..8aa7291 100644
--- a/exercises/20_threads/threads3.rs
+++ b/exercises/20_threads/threads3.rs
@@ -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:?}");