From 2629f7a47254bdcf65666cd00e0f35a7f37dbc84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A4=8E=E5=90=8D=E6=B7=B1=E9=9B=AA?= Date: Sat, 23 Sep 2023 04:40:53 -0400 Subject: [PATCH] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 } }