diff --git a/README.md b/README.md index 4c193fe..94c332f 100644 --- a/README.md +++ b/README.md @@ -275,7 +275,7 @@ pub struct MyVec2 { impl MyVec2Expr { // pass arguments using `AsExpr` so that they accept both Var and Expr #[tracked] - pub fn dot(&self, other:AsExpr) { + pub fn dot(&self, other: impl AsExpr) { self.x * other.x + self.y * other.y } }