Skip to content

Commit 49e466f

Browse files
committed
doc: Fix manual's link attributes example code
1 parent 885f0a2 commit 49e466f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

doc/rust.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -594,16 +594,16 @@ and may optionally begin with any number of `attributes` that apply to the conta
594594
Atributes on the anonymous crate module define important metadata that influences
595595
the behavior of the compiler.
596596

597-
~~~~~~~~{.xfail-test}
597+
~~~~~~~~
598598
// Linkage attributes
599-
#[ link(name = "projx"
599+
#[ link(name = "projx",
600600
vers = "2.5",
601601
uuid = "9cccc5d5-aceb-4af5-8285-811211826b82") ];
602602
603603
// Additional metadata attributes
604-
#[ desc = "Project X",
605-
license = "BSD" ];
606-
author = "Jane Doe" ];
604+
#[ desc = "Project X" ];
605+
#[ license = "BSD" ];
606+
#[ author = "Jane Doe" ];
607607
608608
// Specify the output type
609609
#[ crate_type = "lib" ];

0 commit comments

Comments
 (0)