From 1cc692fffb21347be420321146de7ecd128ac904 Mon Sep 17 00:00:00 2001 From: Michael Griebel Date: Fri, 11 Jul 2025 21:12:37 +0200 Subject: [PATCH] Fix documentation for readonly properties --- docs/content/Tutorial/custom_types.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/content/Tutorial/custom_types.md b/docs/content/Tutorial/custom_types.md index e0318eb..e3e7237 100644 --- a/docs/content/Tutorial/custom_types.md +++ b/docs/content/Tutorial/custom_types.md @@ -390,9 +390,9 @@ static float getVec3Z(Vec3& self) { ... } // Add class "Vec3" auto& cls = m.klass("Vec3"); cls.ctor<>(); -cls.propExtReadonly<&getVec3X>("x"); -cls.propExtReadonly<&getVec3Y>("y"); -cls.propExtReadonly<&getVec3Z>("z"); +cls.propReadonlyExt<&getVec3X>("x"); +cls.propReadonlyExt<&getVec3Y>("y"); +cls.propReadonlyExt<&getVec3Z>("z"); ``` ### 6.5.5 Class variables from base class