mirror of
https://github.com/google/comprehensive-rust.git
synced 2025-04-02 17:48:47 +02:00
Update points-polygons.md (#361)
This commit is contained in:
parent
aa316544c3
commit
426d7d91c2
@ -43,11 +43,11 @@ fn main() {}
|
|||||||
<details>
|
<details>
|
||||||
|
|
||||||
Since the method signatures are missing from the problem statements, the key part
|
Since the method signatures are missing from the problem statements, the key part
|
||||||
of the exercise is to specify those correctly.
|
of the exercise is to specify those correctly. Do not modify any of the tests.
|
||||||
|
|
||||||
Other interesting parts of the exercise:
|
Other interesting parts of the exercise:
|
||||||
|
|
||||||
* Derive a `Copy` trait for some structs, as in tests the methods sometimes don't borrow their arguments.
|
* Derive a `Copy` trait for some structs, as in tests the methods sometimes don't borrow their arguments.
|
||||||
* Discover that `Add` trait must be implemented for two objects to be addable via "+".
|
* Discover that `Add` trait must be implemented for two objects to be addable via "+". Note that we do not discuss generics until Day 3.
|
||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user