Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upRefactoring of vector #415
Conversation
|
Lots of very good stuff in here, thanks! Just a small change in the |
|
Done. I've replace incorrect notice with examples of current behavior |
| /// | ||
| /// Method panics if `abs()` of underlying type panics: | ||
| /// | ||
| /// ```rust,should_panic |
This comment has been minimized.
This comment has been minimized.
nical
Mar 30, 2020
Collaborator
This only panics debug builds, you are adding a test that implies that abs always panics with . Please just remove this section, it is too specific and describes something that is outside of euclid. If you really want to be explicit about the behavior of abs, you can write "The behavior for each component follows the scalar type's implementation of num_traits::Signed::abs."
This comment has been minimized.
This comment has been minimized.
|
Thanks! @bors-servo r+ |
|
|
|
|
Mingun commentedMar 29, 2020
Some refactoring of
Vector2DandVector3D. Summary of changes:deny(missing_docs)is not a problem for vectors now)