From 5f056f4a05f8830f827dae6c33cb66baa78b389e Mon Sep 17 00:00:00 2001 From: 0xbe1 <0xbetrue@gmail.com> Date: Sun, 28 May 2023 23:07:55 +0800 Subject: [PATCH] [docs] fix object.move comments (#8410) --- aptos-move/framework/aptos-framework/doc/object.md | 2 +- aptos-move/framework/aptos-framework/sources/object.move | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/aptos-move/framework/aptos-framework/doc/object.md b/aptos-move/framework/aptos-framework/doc/object.md index 8c536b58778f6..520ed1c935a9c 100644 --- a/aptos-move/framework/aptos-framework/doc/object.md +++ b/aptos-move/framework/aptos-framework/doc/object.md @@ -1105,7 +1105,7 @@ Returns the address associated with the constructor ## Function `object_from_constructor_ref` -Returns an Object from within a DeleteRef +Returns an Object from within a ConstructorRef
public fun object_from_constructor_ref<T: key>(ref: &object::ConstructorRef): object::Object<T>
diff --git a/aptos-move/framework/aptos-framework/sources/object.move b/aptos-move/framework/aptos-framework/sources/object.move
index 9f61e3b6bfbe1..2594feeafcc42 100644
--- a/aptos-move/framework/aptos-framework/sources/object.move
+++ b/aptos-move/framework/aptos-framework/sources/object.move
@@ -285,7 +285,7 @@ module aptos_framework::object {
         ref.self
     }
 
-    /// Returns an Object from within a DeleteRef
+    /// Returns an Object from within a ConstructorRef
     public fun object_from_constructor_ref(ref: &ConstructorRef): Object {
         address_to_object(ref.self)
     }