projects
/
rust-101.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
2022af3
)
part 07: fix typo
author
Ralf Jung
<post@ralfj.de>
Mon, 12 Oct 2015 20:32:14 +0000
(22:32 +0200)
committer
Ralf Jung
<post@ralfj.de>
Mon, 12 Oct 2015 20:32:14 +0000
(22:32 +0200)
thanks to /u/IvoB
src/part07.rs
patch
|
blob
|
history
diff --git
a/src/part07.rs
b/src/part07.rs
index eb1e0dc8e37ace30ba1693dfaf2ec3665e1a7f41..85218bc5fffe6db2fda2c4c6480974b23c9f43f8 100644
(file)
--- 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 `==`:
//@ 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 no
t
be used on our numbers! Speaking in C++ terms, we just overloaded the `==` operator
+//@ That operator can no
w
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
//@ 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