Skip to content

Commit fd848d1

Browse files
committed
Adjusting the position of the worksapce root definition
1 parent 36e5bf1 commit fd848d1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/doc/src/reference/workspaces.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@ The key points of workspaces are:
1515
sections in `Cargo.toml` are only recognized in the *root* manifest, and
1616
ignored in member crates' manifests.
1717

18-
The *workspace root* is the directory where the workspace's `Cargo.toml`
19-
is located.
20-
2118
In the `Cargo.toml`, the `[workspace]` table supports the following sections:
2219

2320
* [`[workspace]`](#the-workspace-section) --- Defines a workspace.
@@ -36,11 +33,14 @@ In the `Cargo.toml`, the `[workspace]` table supports the following sections:
3633
## The `[workspace]` section
3734

3835
To create a workspace, you add the `[workspace]` table to a `Cargo.toml`:
36+
3937
```toml
4038
[workspace]
4139
# ...
4240
```
4341

42+
The directory where the workspace's Cargo.toml is located then becomes so-called the workspace root.
43+
4444
At minimum, a workspace has to have a member, either with a root package or as
4545
a virtual manifest.
4646

0 commit comments

Comments
 (0)