Skip to content

Commit 4ce6472

Browse files
committed
Clarify metadata syntax in manual
Closes #1119
1 parent 1a68a98 commit 4ce6472

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

doc/tutorial/syntax.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,12 @@ is used by the [built-in test framework](test.html)), a name followed
295295
by `=` and then a literal (as in `#[license = "BSD"]`, which is a
296296
valid way to annotate a Rust program as being released under a
297297
BSD-style license), or a name followed by a comma-separated list of
298-
nested attributes, as in the `cfg` example above.
298+
nested attributes, as in the `cfg` example above, or in this
299+
[crate](mod.html) metadata declaration:
300+
301+
#[link(name = "std",
302+
vers = "0.1",
303+
url = "http://rust-lang.org/src/std")];
299304

300305
An attribute without a semicolon following it applies to the
301306
definition that follows it. When terminated with a semicolon, it

0 commit comments

Comments
 (0)