From ccbf3a1fc7336263b3a9f979ce3f28b2bb173fc1 Mon Sep 17 00:00:00 2001 From: blueloveTH Date: Thu, 28 Sep 2023 23:05:36 +0800 Subject: [PATCH] fix `vec2.dot` --- docs/quick-start/wrap.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/quick-start/wrap.md b/docs/quick-start/wrap.md index c52bc7b7..23f5205e 100644 --- a/docs/quick-start/wrap.md +++ b/docs/quick-start/wrap.md @@ -82,7 +82,7 @@ struct PyVec2: Vec2 { return VAR_T(PyVec2, self + other_); }); - vm->bind(type, "dot(other: vec2) -> float", [](VM* vm, ArgsView args){ + vm->bind(type, "dot(self, other: vec2) -> float", [](VM* vm, ArgsView args){ PyVec2& self = _CAST(PyVec2&, args[0]); PyVec2& other = CAST(PyVec2&, args[1]); return VAR(self.dot(other));