]> git.lizzy.rs Git - rust.git/commitdiff
rust.md : update crate attributes.
authoreliovir <eliovir@gmail.com>
Sun, 29 Dec 2013 11:37:51 +0000 (12:37 +0100)
committereliovir <eliovir@gmail.com>
Sun, 29 Dec 2013 11:37:51 +0000 (12:37 +0100)
#[ author = "Jane Doe" ]; raises "warning: unknown crate attribute"

doc/rust.md

index 48a1ea6f6539d261bc5e105e05142c54573ffe82..33e4f8cdd0a2510563708f1258358754eeb002d4 100644 (file)
@@ -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" ];