Skip to content

Commit 4660659

Browse files
committed
rust.md : update crate attributes.
#[ author = "Jane Doe" ]; raises "warning: unknown crate attribute"
1 parent afe8f6e commit 4660659

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/rust.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -610,12 +610,12 @@ the behavior of the compiler.
610610

611611
~~~~
612612
// Package ID
613-
#[ pkgid = "projx#2.5" ];
613+
#[ crate_id = "projx#2.5" ];
614614
615615
// Additional metadata attributes
616616
#[ desc = "Project X" ];
617617
#[ license = "BSD" ];
618-
#[ author = "Jane Doe" ];
618+
#[ comment = "This is a comment on Project X." ];
619619
620620
// Specify the output type
621621
#[ crate_type = "lib" ];

0 commit comments

Comments
 (0)