diff --git a/docs/repo-docs/crafting-your-repository/structuring-a-repository.mdx b/docs/repo-docs/crafting-your-repository/structuring-a-repository.mdx
index 187b258ae3e9f..6d00d5b768ff4 100644
--- a/docs/repo-docs/crafting-your-repository/structuring-a-repository.mdx
+++ b/docs/repo-docs/crafting-your-repository/structuring-a-repository.mdx
@@ -141,7 +141,7 @@ First, your package manager needs to describe the locations of your packages. We
yarn workspace documentation
- ```json title="pnpm-workspace.yml"
+ ```json title="pnpm-workspace.yaml"
packages:
- "apps/*"
- "packages/*"
diff --git a/docs/repo-docs/guides/multi-language.mdx b/docs/repo-docs/guides/multi-language.mdx
index aa3bd8bc1970a..66bc43f60df3e 100644
--- a/docs/repo-docs/guides/multi-language.mdx
+++ b/docs/repo-docs/guides/multi-language.mdx
@@ -38,7 +38,7 @@ As an example, you may have a Rust project in the `./cli` directory in your repo
yarn workspace documentation
- ```json title="pnpm-workspace.yml"
+ ```json title="pnpm-workspace.yaml"
packages:
- "apps/*"
- "packages/*"