diff options
| -rw-r--r-- | src/doc/reference.md | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/doc/reference.md b/src/doc/reference.md index a37e1c14668..26fd2fd8d20 100644 --- a/src/doc/reference.md +++ b/src/doc/reference.md @@ -1636,6 +1636,10 @@ The type of a function declared in an extern block is `extern "abi" fn(A1, ..., An) -> R`, where `A1...An` are the declared types of its arguments and `R` is the declared return type. +It is valid to add the `link` attribute on an empty extern block. You can use +this to satisfy the linking requirements of extern blocks elsewhere in your code +(including upstream crates) instead of adding the attribute to each extern block. + ## Visibility and Privacy These two terms are often used interchangeably, and what they are attempting to |
