From 3babf9bfab54b5d6c6548a899883f1bbf825bd66 Mon Sep 17 00:00:00 2001 From: Junseo Yoo Date: Wed, 3 Jul 2024 14:37:01 -0700 Subject: [PATCH] == operator overridden with __eq --- docs/user-defined-type-functions.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/user-defined-type-functions.md b/docs/user-defined-type-functions.md index 5708282..64d84e1 100644 --- a/docs/user-defined-type-functions.md +++ b/docs/user-defined-type-functions.md @@ -90,7 +90,7 @@ All attributes of newly created typelib are initialized with empty tables / arra | Instance Methods | Return Type | Description | | ------------- | ------------- | ------------- | | `issubtypeof(arg: typelib)` | `boolean` | returns true if self is syntactically a subtype or equal to arg in the type hierarchy | -| `equalsto(arg: typelib)` | `boolean` | returns true if self is syntactically equal to arg in the type hierarchy | +| `__eq(arg: typelib)` | `boolean` | overrides the == operator to return true if self is syntactically equal to arg in the type hierarchy | | Static Methods | Return Type | Description | | ------------- | ------------- | ------------- |