Skip to content

Commit 42a8174

Browse files
fgfm999gregnazariosaharct
authored
[Doc] Fix syntax error for example code on aptos-object.md (aptos-labs#8680)
* [Doc] Fix syntax error for example code on aptos-object.md * add space --------- Co-authored-by: Greg Nazario <[email protected]> Co-authored-by: Christian Sahar <[email protected]>
1 parent bd36842 commit 42a8174

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

developer-docs-site/docs/standards/aptos-object.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,10 @@ LiquidityPool resource is part of the ObjectGroup resource group. This means tha
6868

6969
LiquidityPool resource can be added during construction of the object:
7070
```rust
71-
use aptos_framework::object::Object;
71+
use aptos_framework::object::{Self, Object};
7272
use aptos_framework::fungible_asset::FungibleAsset;
7373

74-
pub fun create_liquidity_pool(
74+
public fun create_liquidity_pool(
7575
token_a: Object<FungibleAsset>,
7676
token_b: Object<FungibleAsset>,
7777
reserves_a: u128,
@@ -86,6 +86,7 @@ pub fun create_liquidity_pool(
8686
reserves_a: reserves_a,
8787
reserves_b: reserves_b
8888
});
89+
object::object_from_constructor_ref(liquidity_pool_constructor_ref)
8990
}
9091
```
9192

0 commit comments

Comments
 (0)