Skip to content

Commit 1c44722

Browse files
committed
Be explicit about using crates.io's libc crate
Fixes #28053
1 parent 6f28232 commit 1c44722

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/doc/trpl/ffi.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -496,9 +496,11 @@ strings are not terminated with `\0`. If you need a NUL-terminated string for
496496
interoperability with C, you should use the `CString` type in the `std::ffi`
497497
module.
498498

499-
The standard library includes type aliases and function definitions for the C
500-
standard library in the `libc` module, and Rust links against `libc` and `libm`
501-
by default.
499+
The [`libc` crate on crates.io][libc] includes type aliases and function
500+
definitions for the C standard library in the `libc` module, and Rust links
501+
against `libc` and `libm` by default.
502+
503+
[libc]: https://crates.io/crates/libc
502504

503505
# The "nullable pointer optimization"
504506

0 commit comments

Comments
 (0)