Skip to content

Commit 1b3fce7

Browse files
committed
Auto merge of #10728 - jorendorff:patch-1, r=ehuss
doc: Improve example of using the links field `"foo"` doesn't really help say what this is.
2 parents 4d92f07 + c586652 commit 1b3fce7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/doc/src/reference/manifest.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,10 +361,13 @@ script guide.
361361

362362
[links]: build-scripts.md#the-links-manifest-key
363363

364+
For example, a crate that links a native library called "git2" (e.g. `libgit2.a`
365+
on Linux) may specify:
366+
364367
```toml
365368
[package]
366369
# ...
367-
links = "foo"
370+
links = "git2"
368371
```
369372

370373
<a id="the-exclude-and-include-fields-optional"></a>

0 commit comments

Comments
 (0)