Skip to content

Commit f063c65

Browse files
committed
doc(install): Tell users about foo@version syntax
1 parent 0768134 commit f063c65

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/doc/man/cargo-install.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ cargo-install - Build and install a Rust binary
88

99
## SYNOPSIS
1010

11-
`cargo install` [_options_] _crate_...\
11+
`cargo install` [_options_] _crate_[@_version_]...\
1212
`cargo install` [_options_] `--path` _path_\
1313
`cargo install` [_options_] `--git` _url_ [_crate_...]\
1414
`cargo install` [_options_] `--list`

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ NAME
44
cargo-install - Build and install a Rust binary
55

66
SYNOPSIS
7-
cargo install [options] crate...
7+
cargo install [options] crate[@version]...
88
cargo install [options] --path path
99
cargo install [options] --git url [crate...]
1010
cargo install [options] --list

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ cargo-install - Build and install a Rust binary
88

99
## SYNOPSIS
1010

11-
`cargo install` [_options_] _crate_...\
11+
`cargo install` [_options_] _crate_[@_version_]...\
1212
`cargo install` [_options_] `--path` _path_\
1313
`cargo install` [_options_] `--git` _url_ [_crate_...]\
1414
`cargo install` [_options_] `--list`

src/etc/man/cargo-install.1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
.SH "NAME"
77
cargo\-install \- Build and install a Rust binary
88
.SH "SYNOPSIS"
9-
\fBcargo install\fR [\fIoptions\fR] \fIcrate\fR\&...
9+
\fBcargo install\fR [\fIoptions\fR] \fIcrate\fR[@\fIversion\fR]\&...
1010
.br
1111
\fBcargo install\fR [\fIoptions\fR] \fB\-\-path\fR \fIpath\fR
1212
.br

0 commit comments

Comments
 (0)