typos, and a TODO list
authorRalf Jung <post@ralfj.de>
Wed, 8 Jul 2015 12:40:05 +0000 (14:40 +0200)
committerRalf Jung <post@ralfj.de>
Wed, 8 Jul 2015 12:40:05 +0000 (14:40 +0200)
TODO.txt [new file with mode: 0644]
src/main.rs
src/part08.rs
workspace/src/part08.rs

diff --git a/TODO.txt b/TODO.txt
new file mode 100644 (file)
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
index ba75223f718e14d8c4bcd5eb348c260cf9ba9f60..34751d33d69753468dfee79e5a251315e4f47242 100644 (file)
@@ -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;
index 4ef9d742447e14d8e7a493a6a4bf24d2c9737d9d..feb2abc5a36f7bbee3f81f831ff9499476d27611 100644 (file)
@@ -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)                     /*@*/
     }
index d03934a8a023b6827f2c9298ccd9bca51d9fc0dd..61f665f26cb8c5a4af203031536e2367c2d715c1 100644 (file)
@@ -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!()
     }