Skip to content

Commit f5f8c5f

Browse files
committed
Link to --features flag for clarification
This clarifies what the paragraph in question is referring to when it mentions "flags"
1 parent 7d7e0fa commit f5f8c5f

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/doc/man/cargo-add.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ If no source is specified, then a best effort will be made to select one, includ
2929
* Workspace members
3030
* Latest release in the registry
3131

32-
When you add a package that is already present, the existing entry will be updated with the flags specified.
32+
When you add a package that is already present, the existing entry will be updated with the [feature flags specified](#option-cargo-add---features).
3333

3434
Upon invocation, the enabled (`+`) and disabled (`-`) [features] of the specified dependency will be
3535
printed on stdout.

src/doc/man/generated_txt/cargo-add.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ DESCRIPTION
3030
o Latest release in the registry
3131

3232
When you add a package that is already present, the existing entry will
33-
be updated with the flags specified.
33+
be updated with the feature flags specified.
3434

3535
Upon invocation, the enabled (+) and disabled (-) features
3636
<https://doc.rust-lang.org/cargo/reference/features.md> of the specified

src/doc/src/commands/cargo-add.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ If no source is specified, then a best effort will be made to select one, includ
2929
* Workspace members
3030
* Latest release in the registry
3131

32-
When you add a package that is already present, the existing entry will be updated with the flags specified.
32+
When you add a package that is already present, the existing entry will be updated with the [feature flags specified](#option-cargo-add---features).
3333

3434
Upon invocation, the enabled (`+`) and disabled (`-`) [features] of the specified dependency will be
3535
printed on stdout.

src/etc/man/cargo-add.1

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ If no source is specified, then a best effort will be made to select one, includ
4242
\h'-04'\(bu\h'+02'Latest release in the registry
4343
.RE
4444
.sp
45-
When you add a package that is already present, the existing entry will be updated with the flags specified.
45+
When you add a package that is already present, the existing entry will be updated with the feature flags specified\&.
4646
.sp
4747
Upon invocation, the enabled (\fB+\fR) and disabled (\fB\-\fR) \fIfeatures\fR <https://doc.rust\-lang.org/cargo/reference/features.md> of the specified dependency will be
4848
printed on stdout.

0 commit comments

Comments
 (0)