From f4a3a3b8780d88e013a8916eea6cc9a8c2c5d890 Mon Sep 17 00:00:00 2001 From: Graham Fawcett Date: Thu, 12 Jan 2012 15:54:39 -0500 Subject: [PATCH] tutorial: rework nolink description to remove mention of "empty string" --- doc/tutorial/ffi.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/doc/tutorial/ffi.md b/doc/tutorial/ffi.md index 54a60809e1c..5b6d72933c9 100644 --- a/doc/tutorial/ffi.md +++ b/doc/tutorial/ffi.md @@ -196,9 +196,8 @@ microsecond-resolution timer. ret (x.tv_sec as u64) * 1000_000_u64 + (x.tv_usec as u64); } -The `#[nolink]` sets the name of the native module to the -empty string to prevent the rust compiler from trying to link it. -The standard C library is already linked with Rust programs. +The `#[nolink]` attribute indicates that there's no native library to link +in. The standard C library is already linked with Rust programs. A `timeval`, in C, is a struct with two 32-bit integers. Thus, we define a record type with the same contents, and declare