Skip to content

Commit

Permalink
Fix wrong project name, my-project instead of my-program (#656)
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmad-moussawi authored Dec 6, 2024
1 parent 7457e2d commit 68cf7d6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/programs/anchor/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ name. This command creates a new directory with the specified name and sets up a
default program and test file.

```shell filename="Terminal"
anchor init my-program
anchor init my-project
```

Navigate to the new project directory and open it in your code editor.
Expand All @@ -70,7 +70,7 @@ Navigate to the new project directory and open it in your code editor.
cd my-project
```

The default Anchor program is located at `/programs/my-project/src/lib.rs`.
The default Anchor program is located at `programs/my-project/src/lib.rs`.

<Accordion>
<AccordionItem title="Default Program">
Expand Down Expand Up @@ -137,7 +137,7 @@ If you prefer Rust for testing, initialize your project with the
`--test-template rust` flag.

```shell
anchor init --test-template rust my-program
anchor init --test-template rust my-project
```

The Rust test file will be at `/tests/src/test_initialize.rs`.
Expand Down

0 comments on commit 68cf7d6

Please sign in to comment.