diff options
| author | eliovir <eliovir@gmail.com> | 2013-12-29 12:37:51 +0100 |
|---|---|---|
| committer | eliovir <eliovir@gmail.com> | 2013-12-29 12:37:51 +0100 |
| commit | 466065946feaaccfb7abbbd78396549449ccfad4 (patch) | |
| tree | bde6c33edfa088947027167d2bc6f6998ed6d8d0 | |
| parent | afe8f6e106cddab165fb09596f7b13ab04a71f71 (diff) | |
rust.md : update crate attributes.
#[ author = "Jane Doe" ]; raises "warning: unknown crate attribute"
| -rw-r--r-- | doc/rust.md | 4 |
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" ]; |
