Skip to content

Commit 2ed31b0

Browse files
committed
Auto merge of #6749 - calebcartwright:docs-publish-command, r=ehuss
Minor doc fix for publish command synopsis I think the synopsis for the [publish command doc]( https://doc.rust-lang.org/stable/cargo/commands/cargo-publish.html) should be `cargo publish` but it currently has `package` (screenshot below). Took a shot at making the change, not positive I did it the correct way though 😄 ![image](https://user-images.githubusercontent.com/13042488/54401497-e8b8b000-4695-11e9-872a-b467968af203.png)
2 parents 9eeece1 + 8be86b6 commit 2ed31b0

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/doc/man/cargo-publish.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ cargo-publish - Upload a package to the registry
99

1010
== SYNOPSIS
1111

12-
`cargo package [_OPTIONS_]`
12+
`cargo publish [_OPTIONS_]`
1313

1414
== DESCRIPTION
1515

src/doc/man/generated/cargo-publish.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ <h2 id="cargo_publish_name">NAME</h2>
66
<h2 id="cargo_publish_synopsis">SYNOPSIS</h2>
77
<div class="sectionbody">
88
<div class="paragraph">
9-
<p><code>cargo package [<em>OPTIONS</em>]</code></p>
9+
<p><code>cargo publish [<em>OPTIONS</em>]</code></p>
1010
</div>
1111
</div>
1212
</div>

src/etc/man/cargo-publish.1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
cargo\-publish \- Upload a package to the registry
3232
.SH "SYNOPSIS"
3333
.sp
34-
\fBcargo package [\fIOPTIONS\fP]\fP
34+
\fBcargo publish [\fIOPTIONS\fP]\fP
3535
.SH "DESCRIPTION"
3636
.sp
3737
This command will create a distributable, compressed \fB.crate\fP file with the

0 commit comments

Comments
 (0)