rust.md : update crate attributes.

#[ author = "Jane Doe" ]; raises "warning: unknown crate attribute"
This commit is contained in:
eliovir 2013-12-29 12:37:51 +01:00
parent afe8f6e106
commit 466065946f
1 changed files with 2 additions and 2 deletions

View 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" ];