From 76de9227939c9244b1e5bd9364542c92991140c8 Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Mon, 12 Oct 2015 22:32:14 +0200 Subject: [PATCH 1/1] part 07: fix typo thanks to /u/IvoB --- src/part07.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/part07.rs b/src/part07.rs index eb1e0dc..85218bc 100644 --- a/src/part07.rs +++ b/src/part07.rs @@ -66,7 +66,7 @@ impl PartialEq for BigInt { //@ and [`Eq`](https://doc.rust-lang.org/std/cmp/trait.Eq.html). `Eq` can be automatically derived as well. // Now we can compare `BigInt`s. Rust treats `PartialEq` special in that it is wired to the operator `==`: -//@ That operator can not be used on our numbers! Speaking in C++ terms, we just overloaded the `==` operator +//@ That operator can now be used on our numbers! Speaking in C++ terms, we just overloaded the `==` operator //@ for `BigInt`. Rust does not have function overloading (i.e., it will not dispatch to different //@ functions depending on the type of the argument). Instead, one typically finds (or defines) a //@ trait that catches the core characteristic common to all the overloads, and writes a single -- 2.30.2