fix typo PratialEq
authorwimh <wimh@users.noreply.github.com>
Sat, 3 Oct 2015 21:11:30 +0000 (23:11 +0200)
committerwimh <wimh@users.noreply.github.com>
Sat, 3 Oct 2015 21:11:30 +0000 (23:11 +0200)
src/part07.rs
workspace/src/part07.rs

index 4cc58a4cabdbaa64144baa562a5268f4d7fad2a8..eb1e0dc8e37ace30ba1693dfaf2ec3665e1a7f41 100644 (file)
@@ -65,7 +65,7 @@ impl PartialEq for BigInt {
 //@ the "partial", I suggest you check out the documentation of [`PartialEq`](https://doc.rust-lang.org/std/cmp/trait.PartialEq.html)
 //@ 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 `PratialEq` special in that it is wired to the operator `==`:
+// 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
 //@ 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
index 3ea4cc089e1679bd9e5de2a12fc34d0b85d350dc..916cb01bc67514492a933ceee01caef41b8ad665 100644 (file)
@@ -39,7 +39,7 @@ impl PartialEq for BigInt {
 }
 
 
-// Now we can compare `BigInt`s. Rust treats `PratialEq` special in that it is wired to the operator `==`:
+// Now we can compare `BigInt`s. Rust treats `PartialEq` special in that it is wired to the operator `==`:
 fn compare_big_ints() {
     let b1 = BigInt::new(13);
     let b2 = BigInt::new(37);