From 645fcf1c32a3d58d29049e5256783d0e4dd3c6d0 Mon Sep 17 00:00:00 2001 From: blueloveTH Date: Sun, 5 May 2024 00:06:02 +0800 Subject: [PATCH] Update bindings.md --- docs/bindings.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/bindings.md b/docs/bindings.md index 797f6426..60d4ab9b 100644 --- a/docs/bindings.md +++ b/docs/bindings.md @@ -199,7 +199,7 @@ vm->bind__add__(vm->tp_int, f_add); This specialized binding function has optimizations and result in better performance when calling from python code. -For example, `vm->bind__add__` is preferred over `vm->bind_method<1>(type, "__add__", ...)`. +For example, `vm->bind__add__` is preferred over `vm->bind_func(type, "__add__", 2, f_add)`. ## Automatic bindings