about summary refs log tree commit diff
diff options
context:
space:
mode:
authoreliovir <eliovir@gmail.com>2013-12-29 12:37:51 +0100
committereliovir <eliovir@gmail.com>2013-12-29 12:37:51 +0100
commit466065946feaaccfb7abbbd78396549449ccfad4 (patch)
treebde6c33edfa088947027167d2bc6f6998ed6d8d0
parentafe8f6e106cddab165fb09596f7b13ab04a71f71 (diff)
rust.md : update crate attributes.
#[ author = "Jane Doe" ]; raises "warning: unknown crate attribute"
-rw-r--r--doc/rust.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/rust.md b/doc/rust.md
index 48a1ea6f653..33e4f8cdd0a 100644
--- a/doc/rust.md
+++ b/doc/rust.md
@@ -610,12 +610,12 @@ the behavior of the compiler.
 
 ~~~~
 // Package ID
-#[ pkgid = "projx#2.5" ];
+#[ crate_id = "projx#2.5" ];
 
 // Additional metadata attributes
 #[ desc = "Project X" ];
 #[ license = "BSD" ];
-#[ author = "Jane Doe" ];
+#[ comment = "This is a comment on Project X." ];
 
 // Specify the output type
 #[ crate_type = "lib" ];