Skip to content

Commit

Permalink
docs: fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
shuoer86 committed Oct 19, 2023
1 parent a275529 commit c566280
Show file tree
Hide file tree
Showing 34 changed files with 361 additions and 33 deletions.
328 changes: 328 additions & 0 deletions 0001-docs-fix-typo.patch

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/doc/man/cargo-rustc.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ The `rustc` subcommand will treat the following named profiles with special beha
* `bench` --- Builds in the same was as the {{man "cargo-bench" 1}} command,
similar to the `test` profile.

See the [the reference](../reference/profiles.html) for more details on profiles.
See [the reference](../reference/profiles.html) for more details on profiles.
{{/option}}

{{> options-ignore-rust-version }}
Expand Down
2 changes: 1 addition & 1 deletion src/doc/man/generated_txt/cargo-bench.txt
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ OPTIONS
documentation for more details.

--profile name
Benchmark with the given profile. See the the reference
Benchmark with the given profile. See the reference
<https://doc.rust-lang.org/cargo/reference/profiles.html> for more
details on profiles.

Expand Down
2 changes: 1 addition & 1 deletion src/doc/man/generated_txt/cargo-build.txt
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ OPTIONS
--profile option for choosing a specific profile by name.

--profile name
Build with the given profile. See the the reference
Build with the given profile. See the reference
<https://doc.rust-lang.org/cargo/reference/profiles.html> for more
details on profiles.

Expand Down
2 changes: 1 addition & 1 deletion src/doc/man/generated_txt/cargo-check.txt
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ OPTIONS
the test cfg option. See rustc tests
<https://doc.rust-lang.org/rustc/tests/index.html> for more detail.

See the the reference
See the reference
<https://doc.rust-lang.org/cargo/reference/profiles.html> for more
details on profiles.

Expand Down
2 changes: 1 addition & 1 deletion src/doc/man/generated_txt/cargo-doc.txt
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ OPTIONS
--profile option for choosing a specific profile by name.

--profile name
Document with the given profile. See the the reference
Document with the given profile. See the reference
<https://doc.rust-lang.org/cargo/reference/profiles.html> for more
details on profiles.

Expand Down
2 changes: 1 addition & 1 deletion src/doc/man/generated_txt/cargo-fix.txt
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ OPTIONS
the test cfg option. See rustc tests
<https://doc.rust-lang.org/rustc/tests/index.html> for more detail.

See the the reference
See the reference
<https://doc.rust-lang.org/cargo/reference/profiles.html> for more
details on profiles.

Expand Down
2 changes: 1 addition & 1 deletion src/doc/man/generated_txt/cargo-install.txt
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ OPTIONS
the --profile option for choosing a specific profile by name.

--profile name
Install with the given profile. See the the reference
Install with the given profile. See the reference
<https://doc.rust-lang.org/cargo/reference/profiles.html> for more
details on profiles.

Expand Down
2 changes: 1 addition & 1 deletion src/doc/man/generated_txt/cargo-run.txt
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ OPTIONS
--profile option for choosing a specific profile by name.

--profile name
Run with the given profile. See the the reference
Run with the given profile. See the reference
<https://doc.rust-lang.org/cargo/reference/profiles.html> for more
details on profiles.

Expand Down
2 changes: 1 addition & 1 deletion src/doc/man/generated_txt/cargo-rustc.txt
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ OPTIONS
o bench — Builds in the same was as the cargo-bench(1) command,
similar to the test profile.

See the the reference
See the reference
<https://doc.rust-lang.org/cargo/reference/profiles.html> for more
details on profiles.

Expand Down
2 changes: 1 addition & 1 deletion src/doc/man/generated_txt/cargo-rustdoc.txt
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ OPTIONS
--profile option for choosing a specific profile by name.

--profile name
Document with the given profile. See the the reference
Document with the given profile. See the reference
<https://doc.rust-lang.org/cargo/reference/profiles.html> for more
details on profiles.

Expand Down
2 changes: 1 addition & 1 deletion src/doc/man/generated_txt/cargo-test.txt
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ OPTIONS
--profile option for choosing a specific profile by name.

--profile name
Test with the given profile. See the the reference
Test with the given profile. See the reference
<https://doc.rust-lang.org/cargo/reference/profiles.html> for more
details on profiles.

Expand Down
2 changes: 1 addition & 1 deletion src/doc/man/includes/options-profile-legacy-check.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ test mode which will enable checking tests and enable the `test` cfg option.
See [rustc tests](https://doc.rust-lang.org/rustc/tests/index.html) for more
detail.

See the [the reference](../reference/profiles.html) for more details on profiles.
See [the reference](../reference/profiles.html) for more details on profiles.
{{/option}}
2 changes: 1 addition & 1 deletion src/doc/man/includes/options-profile.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{#option "`--profile` _name_" }}
{{actionverb}} with the given profile.
See the [the reference](../reference/profiles.html) for more details on profiles.
See [the reference](../reference/profiles.html) for more details on profiles.
{{/option}}
2 changes: 1 addition & 1 deletion src/doc/src/commands/cargo-bench.md
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ target artifacts are placed in a separate directory. See the

<dt class="option-term" id="option-cargo-bench---profile"><a class="option-anchor" href="#option-cargo-bench---profile"></a><code>--profile</code> <em>name</em></dt>
<dd class="option-desc">Benchmark with the given profile.
See the <a href="../reference/profiles.html">the reference</a> for more details on profiles.</dd>
See <a href="../reference/profiles.html">the reference</a> for more details on profiles.</dd>



Expand Down
2 changes: 1 addition & 1 deletion src/doc/src/commands/cargo-build.md
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ See also the <code>--profile</code> option for choosing a specific profile by na

<dt class="option-term" id="option-cargo-build---profile"><a class="option-anchor" href="#option-cargo-build---profile"></a><code>--profile</code> <em>name</em></dt>
<dd class="option-desc">Build with the given profile.
See the <a href="../reference/profiles.html">the reference</a> for more details on profiles.</dd>
See <a href="../reference/profiles.html">the reference</a> for more details on profiles.</dd>



Expand Down
2 changes: 1 addition & 1 deletion src/doc/src/commands/cargo-check.md
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ See also the <code>--profile</code> option for choosing a specific profile by na
test mode which will enable checking tests and enable the <code>test</code> cfg option.
See <a href="https://doc.rust-lang.org/rustc/tests/index.html">rustc tests</a> for more
detail.</p>
<p>See the <a href="../reference/profiles.html">the reference</a> for more details on profiles.</dd>
<p>See <a href="../reference/profiles.html">the reference</a> for more details on profiles.</dd>



Expand Down
2 changes: 1 addition & 1 deletion src/doc/src/commands/cargo-doc.md
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ See also the <code>--profile</code> option for choosing a specific profile by na

<dt class="option-term" id="option-cargo-doc---profile"><a class="option-anchor" href="#option-cargo-doc---profile"></a><code>--profile</code> <em>name</em></dt>
<dd class="option-desc">Document with the given profile.
See the <a href="../reference/profiles.html">the reference</a> for more details on profiles.</dd>
See <a href="../reference/profiles.html">the reference</a> for more details on profiles.</dd>



Expand Down
2 changes: 1 addition & 1 deletion src/doc/src/commands/cargo-fix.md
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ See also the <code>--profile</code> option for choosing a specific profile by na
test mode which will enable checking tests and enable the <code>test</code> cfg option.
See <a href="https://doc.rust-lang.org/rustc/tests/index.html">rustc tests</a> for more
detail.</p>
<p>See the <a href="../reference/profiles.html">the reference</a> for more details on profiles.</dd>
<p>See <a href="../reference/profiles.html">the reference</a> for more details on profiles.</dd>



Expand Down
2 changes: 1 addition & 1 deletion src/doc/src/commands/cargo-install.md
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ See also the <code>--profile</code> option for choosing a specific profile by na

<dt class="option-term" id="option-cargo-install---profile"><a class="option-anchor" href="#option-cargo-install---profile"></a><code>--profile</code> <em>name</em></dt>
<dd class="option-desc">Install with the given profile.
See the <a href="../reference/profiles.html">the reference</a> for more details on profiles.</dd>
See <a href="../reference/profiles.html">the reference</a> for more details on profiles.</dd>



Expand Down
2 changes: 1 addition & 1 deletion src/doc/src/commands/cargo-run.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ See also the <code>--profile</code> option for choosing a specific profile by na

<dt class="option-term" id="option-cargo-run---profile"><a class="option-anchor" href="#option-cargo-run---profile"></a><code>--profile</code> <em>name</em></dt>
<dd class="option-desc">Run with the given profile.
See the <a href="../reference/profiles.html">the reference</a> for more details on profiles.</dd>
See <a href="../reference/profiles.html">the reference</a> for more details on profiles.</dd>



Expand Down
2 changes: 1 addition & 1 deletion src/doc/src/commands/cargo-rustc.md
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ tests</a> for more detail.</li>
<li><code>bench</code> — Builds in the same was as the <a href="cargo-bench.html">cargo-bench(1)</a> command,
similar to the <code>test</code> profile.</li>
</ul>
<p>See the <a href="../reference/profiles.html">the reference</a> for more details on profiles.</dd>
<p>See <a href="../reference/profiles.html">the reference</a> for more details on profiles.</dd>


<dt class="option-term" id="option-cargo-rustc---ignore-rust-version"><a class="option-anchor" href="#option-cargo-rustc---ignore-rust-version"></a><code>--ignore-rust-version</code></dt>
Expand Down
2 changes: 1 addition & 1 deletion src/doc/src/commands/cargo-rustdoc.md
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ See also the <code>--profile</code> option for choosing a specific profile by na

<dt class="option-term" id="option-cargo-rustdoc---profile"><a class="option-anchor" href="#option-cargo-rustdoc---profile"></a><code>--profile</code> <em>name</em></dt>
<dd class="option-desc">Document with the given profile.
See the <a href="../reference/profiles.html">the reference</a> for more details on profiles.</dd>
See <a href="../reference/profiles.html">the reference</a> for more details on profiles.</dd>



Expand Down
2 changes: 1 addition & 1 deletion src/doc/src/commands/cargo-test.md
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ See also the <code>--profile</code> option for choosing a specific profile by na

<dt class="option-term" id="option-cargo-test---profile"><a class="option-anchor" href="#option-cargo-test---profile"></a><code>--profile</code> <em>name</em></dt>
<dd class="option-desc">Test with the given profile.
See the <a href="../reference/profiles.html">the reference</a> for more details on profiles.</dd>
See <a href="../reference/profiles.html">the reference</a> for more details on profiles.</dd>



Expand Down
2 changes: 1 addition & 1 deletion src/etc/man/cargo-bench.1
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ target artifacts are placed in a separate directory. See the
\fB\-\-profile\fR \fIname\fR
.RS 4
Benchmark with the given profile.
See the \fIthe reference\fR <https://doc.rust\-lang.org/cargo/reference/profiles.html> for more details on profiles.
See \fIthe reference\fR <https://doc.rust\-lang.org/cargo/reference/profiles.html> for more details on profiles.
.RE
.sp
\fB\-\-ignore\-rust\-version\fR
Expand Down
2 changes: 1 addition & 1 deletion src/etc/man/cargo-build.1
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ See also the \fB\-\-profile\fR option for choosing a specific profile by name.
\fB\-\-profile\fR \fIname\fR
.RS 4
Build with the given profile.
See the \fIthe reference\fR <https://doc.rust\-lang.org/cargo/reference/profiles.html> for more details on profiles.
See \fIthe reference\fR <https://doc.rust\-lang.org/cargo/reference/profiles.html> for more details on profiles.
.RE
.sp
\fB\-\-ignore\-rust\-version\fR
Expand Down
2 changes: 1 addition & 1 deletion src/etc/man/cargo-check.1
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ test mode which will enable checking tests and enable the \fBtest\fR cfg option.
See \fIrustc tests\fR <https://doc.rust\-lang.org/rustc/tests/index.html> for more
detail.
.sp
See the \fIthe reference\fR <https://doc.rust\-lang.org/cargo/reference/profiles.html> for more details on profiles.
See \fIthe reference\fR <https://doc.rust\-lang.org/cargo/reference/profiles.html> for more details on profiles.
.RE
.sp
\fB\-\-ignore\-rust\-version\fR
Expand Down
2 changes: 1 addition & 1 deletion src/etc/man/cargo-doc.1
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ See also the \fB\-\-profile\fR option for choosing a specific profile by name.
\fB\-\-profile\fR \fIname\fR
.RS 4
Document with the given profile.
See the \fIthe reference\fR <https://doc.rust\-lang.org/cargo/reference/profiles.html> for more details on profiles.
See \fIthe reference\fR <https://doc.rust\-lang.org/cargo/reference/profiles.html> for more details on profiles.
.RE
.sp
\fB\-\-ignore\-rust\-version\fR
Expand Down
2 changes: 1 addition & 1 deletion src/etc/man/cargo-fix.1
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ test mode which will enable checking tests and enable the \fBtest\fR cfg option.
See \fIrustc tests\fR <https://doc.rust\-lang.org/rustc/tests/index.html> for more
detail.
.sp
See the \fIthe reference\fR <https://doc.rust\-lang.org/cargo/reference/profiles.html> for more details on profiles.
See \fIthe reference\fR <https://doc.rust\-lang.org/cargo/reference/profiles.html> for more details on profiles.
.RE
.sp
\fB\-\-ignore\-rust\-version\fR
Expand Down
2 changes: 1 addition & 1 deletion src/etc/man/cargo-install.1
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ See also the \fB\-\-profile\fR option for choosing a specific profile by name.
\fB\-\-profile\fR \fIname\fR
.RS 4
Install with the given profile.
See the \fIthe reference\fR <https://doc.rust\-lang.org/cargo/reference/profiles.html> for more details on profiles.
See \fIthe reference\fR <https://doc.rust\-lang.org/cargo/reference/profiles.html> for more details on profiles.
.RE
.sp
\fB\-\-ignore\-rust\-version\fR
Expand Down
2 changes: 1 addition & 1 deletion src/etc/man/cargo-run.1
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ See also the \fB\-\-profile\fR option for choosing a specific profile by name.
\fB\-\-profile\fR \fIname\fR
.RS 4
Run with the given profile.
See the \fIthe reference\fR <https://doc.rust\-lang.org/cargo/reference/profiles.html> for more details on profiles.
See \fIthe reference\fR <https://doc.rust\-lang.org/cargo/reference/profiles.html> for more details on profiles.
.RE
.sp
\fB\-\-ignore\-rust\-version\fR
Expand Down
2 changes: 1 addition & 1 deletion src/etc/man/cargo-rustc.1
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ tests\fR <https://doc.rust\-lang.org/rustc/tests/index.html> for more detail.
similar to the \fBtest\fR profile.
.RE
.sp
See the \fIthe reference\fR <https://doc.rust\-lang.org/cargo/reference/profiles.html> for more details on profiles.
See \fIthe reference\fR <https://doc.rust\-lang.org/cargo/reference/profiles.html> for more details on profiles.
.RE
.sp
\fB\-\-ignore\-rust\-version\fR
Expand Down
2 changes: 1 addition & 1 deletion src/etc/man/cargo-rustdoc.1
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ See also the \fB\-\-profile\fR option for choosing a specific profile by name.
\fB\-\-profile\fR \fIname\fR
.RS 4
Document with the given profile.
See the \fIthe reference\fR <https://doc.rust\-lang.org/cargo/reference/profiles.html> for more details on profiles.
See \fIthe reference\fR <https://doc.rust\-lang.org/cargo/reference/profiles.html> for more details on profiles.
.RE
.sp
\fB\-\-ignore\-rust\-version\fR
Expand Down
2 changes: 1 addition & 1 deletion src/etc/man/cargo-test.1
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ See also the \fB\-\-profile\fR option for choosing a specific profile by name.
\fB\-\-profile\fR \fIname\fR
.RS 4
Test with the given profile.
See the \fIthe reference\fR <https://doc.rust\-lang.org/cargo/reference/profiles.html> for more details on profiles.
See \fIthe reference\fR <https://doc.rust\-lang.org/cargo/reference/profiles.html> for more details on profiles.
.RE
.sp
\fB\-\-ignore\-rust\-version\fR
Expand Down

0 comments on commit c566280

Please sign in to comment.