Skip to content

Commit c8319f4

Browse files
author
yacong
committed
docs: fix parameter count mismatch in token-swap README (Issue #494)
1 parent c193f58 commit c8319f4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tokens/token-swap/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ This code implements a constant LEN for the Pool struct, which represents the si
145145

146146
https://github.com/solana-developers/program-examples/blob/419cb6b6c20e8b1c65711b68a4dde2527725cc1a/tokens/token-swap/anchor/programs/token-swap/src/instructions/create_amm.rs#L1-L12
147147

148-
The above code defines a function named **`create_amm`** that is used to create an AMM account. It takes four parameters:
148+
The above code defines a function named **`create_amm`** that is used to create an AMM account. It takes three parameters:
149149

150150
1. **`ctx`**: The **`Context<CreateAmm>`** parameter contains the context data required to execute the function.
151151
2. **`id`**: The **`Pubkey`** parameter represents the ID for the new AMM account.

0 commit comments

Comments
 (0)