Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix wrong project name, my-project instead of my-program #656

Merged
merged 1 commit into from
Dec 6, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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