X-Git-Url: https://git.ralfj.de/rust-101.git/blobdiff_plain/5e5b934f2df7852e021c6cc3f89e313a08345560..e7fafa765963c465b1601ae2204564c55ee11571:/src/part05.rs diff --git a/src/part05.rs b/src/part05.rs index 03c10d3..84f14ff 100644 --- a/src/part05.rs +++ b/src/part05.rs @@ -110,6 +110,9 @@ impl Clone for SomethingOrNothing { // Again, Rust will generate this implementation automatically if you add // `#[derive(Clone)]` right before the definition of `SomethingOrNothing`. +// **Exercise 05.2**: Write some more functions on `BigInt`. What about a function that returns the number of +// digits? The number of non-zero digits? The smallest/largest digit? + // ## Mutation + aliasing considered harmful (part 2) // Now that we know how to borrow a part of an `enum` (like `v` above), there's another example for why we // have to rule out mutation in the presence of aliasing. First, we define an `enum` that can hold either