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:
622b08f
)
Clarified vector endianness for Exercise 05.1.
author
Torsten Scheck
<torsten.scheck@gmx.de>
Fri, 30 Jun 2017 16:26:58 +0000
(18:26 +0200)
committer
Torsten Scheck
<torsten.scheck@gmx.de>
Fri, 30 Jun 2017 16:26:58 +0000
(18:26 +0200)
src/part05.rs
patch
|
blob
|
history
diff --git
a/src/part05.rs
b/src/part05.rs
index eaad9804aaad71226c1bf3332839d32c73bbd9ce..adbe5c75a382c75b10510715bcbbb5cf09030742 100644
(file)
--- a/
src/part05.rs
+++ b/
src/part05.rs
@@
-47,7
+47,8
@@
impl BigInt {
}
}
}
}
- // We can convert any vector of digits into a number, by removing trailing zeros. The `mut`
+ // Any vector of digits, which meets the structure of BigInt's `data` field, can be easily
+ // converted into a big number just by removing trailing zeros. The `mut`
// declaration for `v` here is just like the one in `let mut ...`: We completely own `v`, but Rust
// still asks us to make our intention of modifying it explicit. This `mut` is *not* part of the
// type of `from_vec` - the caller has to give up ownership of `v` anyway, so they don't care anymore
// declaration for `v` here is just like the one in `let mut ...`: We completely own `v`, but Rust
// still asks us to make our intention of modifying it explicit. This `mut` is *not* part of the
// type of `from_vec` - the caller has to give up ownership of `v` anyway, so they don't care anymore