From 1c447223750f415e3624dad1f742a78376be6287 Mon Sep 17 00:00:00 2001 From: Steve Klabnik Date: Fri, 28 Aug 2015 11:43:23 -0400 Subject: [PATCH] Be explicit about using crates.io's libc crate Fixes #28053 --- src/doc/trpl/ffi.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/doc/trpl/ffi.md b/src/doc/trpl/ffi.md index 878947e10adb4..7a58a327b9f95 100644 --- a/src/doc/trpl/ffi.md +++ b/src/doc/trpl/ffi.md @@ -496,9 +496,11 @@ strings are not terminated with `\0`. If you need a NUL-terminated string for interoperability with C, you should use the `CString` type in the `std::ffi` module. -The standard library includes type aliases and function definitions for the C -standard library in the `libc` module, and Rust links against `libc` and `libm` -by default. +The [`libc` crate on crates.io][libc] includes type aliases and function +definitions for the C standard library in the `libc` module, and Rust links +against `libc` and `libm` by default. + +[libc]: https://crates.io/crates/libc # The "nullable pointer optimization"