Skip to content

Commit

Permalink
expand description of the link attribute
Browse files Browse the repository at this point in the history
Fixes #18288
  • Loading branch information
steveklabnik committed Nov 6, 2014
1 parent e2cd459 commit d108613
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/doc/reference.md
Expand Up @@ -1957,8 +1957,10 @@ On an `extern` block, the following attributes are interpreted:
name and type. This is feature gated and the exact behavior is
implementation-defined (due to variety of linker invocation syntax).
- `link` - indicate that a native library should be linked to for the
declarations in this block to be linked correctly. See [external
blocks](#external-blocks)
declarations in this block to be linked correctly. `link` supports an optional `kind`
key with three possible values: `dylib`, `static`, and `framework`. See [external blocks](#external-blocks) for more about external blocks. Two
examples: `#[link(name = "readline")]` and
`#[link(name = "CoreFoundation", kind = "framework")]`.

On declarations inside an `extern` block, the following attributes are
interpreted:
Expand Down

0 comments on commit d108613

Please sign in to comment.