From 168a3c495f364e52544bcf9b16bea5ea3f5fbb57 Mon Sep 17 00:00:00 2001 From: davhojt Date: Wed, 8 Jun 2022 12:36:26 +0300 Subject: [PATCH] docs(lalgebra_vector) switch addition to var + var, instead of var plus dereferenced ptr --- subjects/lalgebra_vector/README.md | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/subjects/lalgebra_vector/README.md b/subjects/lalgebra_vector/README.md index 7c3bfa48c..52ac6809e 100644 --- a/subjects/lalgebra_vector/README.md +++ b/subjects/lalgebra_vector/README.md @@ -8,10 +8,6 @@ Define the associated function `dot`, that calculates the dot product between tw Note: `Vector` must implement `Debug`, `Clone`, `Eq` and `PartialEq`. -#### Important - -Note that in the addition of vector of the example the `Rhs` is not `Self` - ### Expected Functions and Structure ```rust @@ -42,7 +38,7 @@ fn main() { let vector_1: Vector = Vector(vec![1, 3, -5]); let vector_2: Vector = Vector(vec![4, -2, -1]); println!("{:?}", vector_1.dot(&vector_2)); - println!("{:?}", vector_1 + &vector_2); + println!("{:?}", vector_1 + vector_2); } ```