From f212d116773ee38f4e8a6b18c3aaa3869472de7b Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Wed, 8 Jul 2015 14:40:05 +0200 Subject: [PATCH] typos, and a TODO list --- TODO.txt | 11 +++++++++++ src/main.rs | 2 +- src/part08.rs | 2 +- workspace/src/part08.rs | 2 +- 4 files changed, 14 insertions(+), 3 deletions(-) create mode 100644 TODO.txt diff --git a/TODO.txt b/TODO.txt new file mode 100644 index 0000000..39d060c --- /dev/null +++ b/TODO.txt @@ -0,0 +1,11 @@ +* Closures: Working on iterators +* Arrays/slices +* Trait objects +* Drop +* ?unsafe? +* ?interior mutability? + +* Arc, concurrency, channels: Some grep-like thing, "rgrep" +* Send, Sync +* External dependencies: regexp crate, add to rgrep +* \ No newline at end of file diff --git a/src/main.rs b/src/main.rs index ba75223..34751d3 100644 --- a/src/main.rs +++ b/src/main.rs @@ -76,7 +76,7 @@ // * [Part 06: Copy, Lifetimes](part06.html) // * [Part 07: Operator Overloading, Tests, Formating](part07.html) // * [Part 08: Associated Types, Modules](part08.html) -// * [Part 09: Iterators](part08.html) +// * [Part 09: Iterators](part09.html) // * (to be continued) #![allow(dead_code, unused_imports, unused_variables, unused_mut)] mod part00; diff --git a/src/part08.rs b/src/part08.rs index 4ef9d74..feb2abc 100644 --- a/src/part08.rs +++ b/src/part08.rs @@ -28,7 +28,7 @@ fn overflowing_add(a: u64, b: u64, carry: bool) -> (u64, bool) { // **Exercise 08.1**: Write the code to handle adding the carry in this case. unimplemented!() } else { - // The addition *did* overflow. It is impossible for the addition of the carry + // Otherwise, the addition *did* overflow. It is impossible for the addition of the carry // to overflow again, as we are just adding 0 or 1. (sum + if carry { 1 } else { 0 }, true) /*@*/ } diff --git a/workspace/src/part08.rs b/workspace/src/part08.rs index d03934a..61f665f 100644 --- a/workspace/src/part08.rs +++ b/workspace/src/part08.rs @@ -15,7 +15,7 @@ fn overflowing_add(a: u64, b: u64, carry: bool) -> (u64, bool) { // **Exercise 08.1**: Write the code to handle adding the carry in this case. unimplemented!() } else { - // The addition *did* overflow. It is impossible for the addition of the carry + // Otherwise, the addition *did* overflow. It is impossible for the addition of the carry // to overflow again, as we are just adding 0 or 1. unimplemented!() } -- 2.30.2