Skip to content

Commit

Permalink
Auto merge of #6749 - calebcartwright:docs-publish-command, r=ehuss
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
bors committed Mar 15, 2019
2 parents 9eeece1 + 8be86b6 commit 2ed31b0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/doc/man/cargo-publish.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ cargo-publish - Upload a package to the registry

== SYNOPSIS

`cargo package [_OPTIONS_]`
`cargo publish [_OPTIONS_]`

== DESCRIPTION

Expand Down
2 changes: 1 addition & 1 deletion src/doc/man/generated/cargo-publish.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ <h2 id="cargo_publish_name">NAME</h2>
<h2 id="cargo_publish_synopsis">SYNOPSIS</h2>
<div class="sectionbody">
<div class="paragraph">
<p><code>cargo package [<em>OPTIONS</em>]</code></p>
<p><code>cargo publish [<em>OPTIONS</em>]</code></p>
</div>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/etc/man/cargo-publish.1
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
cargo\-publish \- Upload a package to the registry
.SH "SYNOPSIS"
.sp
\fBcargo package [\fIOPTIONS\fP]\fP
\fBcargo publish [\fIOPTIONS\fP]\fP
.SH "DESCRIPTION"
.sp
This command will create a distributable, compressed \fB.crate\fP file with the
Expand Down

0 comments on commit 2ed31b0

Please sign in to comment.