Skip to content

Commit

Permalink
[docs] fix object.move comments (#8410)
Browse files Browse the repository at this point in the history
  • Loading branch information
0xbe1 authored May 28, 2023
1 parent 9e71e24 commit 5f056f4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion aptos-move/framework/aptos-framework/doc/object.md
Original file line number Diff line number Diff line change
Expand Up @@ -1105,7 +1105,7 @@ Returns the address associated with the constructor

## Function `object_from_constructor_ref`

Returns an Object<T> from within a DeleteRef
Returns an Object<T> from within a ConstructorRef


<pre><code><b>public</b> <b>fun</b> <a href="object.md#0x1_object_object_from_constructor_ref">object_from_constructor_ref</a>&lt;T: key&gt;(ref: &<a href="object.md#0x1_object_ConstructorRef">object::ConstructorRef</a>): <a href="object.md#0x1_object_Object">object::Object</a>&lt;T&gt;
Expand Down
2 changes: 1 addition & 1 deletion aptos-move/framework/aptos-framework/sources/object.move
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ module aptos_framework::object {
ref.self
}

/// Returns an Object<T> from within a DeleteRef
/// Returns an Object<T> from within a ConstructorRef
public fun object_from_constructor_ref<T: key>(ref: &ConstructorRef): Object<T> {
address_to_object<T>(ref.self)
}
Expand Down

0 comments on commit 5f056f4

Please sign in to comment.