Skip to content

Commit f4a3a3b

Browse files
gmfawcettmarijnh
authored andcommitted
tutorial: rework nolink description to remove mention of "empty string"
1 parent 9d217d9 commit f4a3a3b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

doc/tutorial/ffi.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -196,9 +196,8 @@ microsecond-resolution timer.
196196
ret (x.tv_sec as u64) * 1000_000_u64 + (x.tv_usec as u64);
197197
}
198198

199-
The `#[nolink]` sets the name of the native module to the
200-
empty string to prevent the rust compiler from trying to link it.
201-
The standard C library is already linked with Rust programs.
199+
The `#[nolink]` attribute indicates that there's no native library to link
200+
in. The standard C library is already linked with Rust programs.
202201

203202
A `timeval`, in C, is a struct with two 32-bit integers. Thus, we
204203
define a record type with the same contents, and declare

0 commit comments

Comments
 (0)