From 4ce6472c029191b168828ee3aa65a3ae63ac1823 Mon Sep 17 00:00:00 2001 From: Marijn Haverbeke Date: Thu, 3 Nov 2011 10:59:42 +0100 Subject: [PATCH] Clarify metadata syntax in manual Closes #1119 --- doc/tutorial/syntax.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/doc/tutorial/syntax.md b/doc/tutorial/syntax.md index 75bcb2df4cd..0bf00616c6f 100644 --- a/doc/tutorial/syntax.md +++ b/doc/tutorial/syntax.md @@ -295,7 +295,12 @@ is used by the [built-in test framework](test.html)), a name followed by `=` and then a literal (as in `#[license = "BSD"]`, which is a valid way to annotate a Rust program as being released under a BSD-style license), or a name followed by a comma-separated list of -nested attributes, as in the `cfg` example above. +nested attributes, as in the `cfg` example above, or in this +[crate](mod.html) metadata declaration: + + #[link(name = "std", + vers = "0.1", + url = "http://rust-lang.org/src/std")]; An attribute without a semicolon following it applies to the definition that follows it. When terminated with a semicolon, it