1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2025-04-01 17:34:25 +02:00

Update points-polygons.md (#361)

This commit is contained in:
Charisee Chiw 2023-02-09 12:49:35 -08:00 committed by GitHub
parent aa316544c3
commit 426d7d91c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -43,11 +43,11 @@ fn main() {}
<details>
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:
* 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>