Skip to content

Commit 2d61ada

Browse files
committed
Add code tags to cargo info output
1 parent 0d73760 commit 2d61ada

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

posts/2024-10-17-Rust-1.82.0.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Cargo now has an [`info` subcommand](https://doc.rust-lang.org/nightly/cargo/com
2626
For example, here's what you could see for `cargo info cc`:
2727

2828
<pre>
29-
<b><span style="color:#0A0">cc</span></b> <b><span style="color:#0AA">#build-dependencies</span></b>
29+
<code class="language-text"><b><span style="color:#0A0">cc</span></b> <b><span style="color:#0AA">#build-dependencies</span></b>
3030
A build-time dependency for Cargo build scripts to assist in invoking the native
3131
C compiler to compile native C code into a static archive to be linked into Rust
3232
code.
@@ -41,7 +41,7 @@ code.
4141
jobserver = []
4242
parallel = [dep:libc, dep:jobserver]
4343
<b><span style="color:#0AA">note</span></b><b>:</b> to see how you depend on cc, run `<b><span style="color:#0AA">cargo tree --invert --package [email protected]</span></b>`
44-
</pre>
44+
</code></pre>
4545

4646
By default, `cargo info` describes the package version in the local `Cargo.lock`, if any. As you can see, it will indicate when there's a newer version too, and `cargo info [email protected]` would report on that.
4747

0 commit comments

Comments
 (0)