Skip to content

Commit fcfd307

Browse files
committed
rollup merge of rust-lang#18373 : steveklabnik/gh18288
2 parents 8a25e07 + d108613 commit fcfd307

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/doc/reference.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1961,8 +1961,10 @@ On an `extern` block, the following attributes are interpreted:
19611961
name and type. This is feature gated and the exact behavior is
19621962
implementation-defined (due to variety of linker invocation syntax).
19631963
- `link` - indicate that a native library should be linked to for the
1964-
declarations in this block to be linked correctly. See [external
1965-
blocks](#external-blocks)
1964+
declarations in this block to be linked correctly. `link` supports an optional `kind`
1965+
key with three possible values: `dylib`, `static`, and `framework`. See [external blocks](#external-blocks) for more about external blocks. Two
1966+
examples: `#[link(name = "readline")]` and
1967+
`#[link(name = "CoreFoundation", kind = "framework")]`.
19661968

19671969
On declarations inside an `extern` block, the following attributes are
19681970
interpreted:

0 commit comments

Comments
 (0)