Skip to content

Commit 13ac12d

Browse files
committed
manual: update style
1 parent b6d5daf commit 13ac12d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/doc/rust.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -612,18 +612,18 @@ the behavior of the compiler.
612612

613613
~~~~
614614
// Crate ID
615-
#[ crate_id = "projx#2.5" ];
615+
#![crate_id = "projx#2.5"]
616616
617617
// Additional metadata attributes
618-
#[ desc = "Project X" ];
619-
#[ license = "BSD" ];
620-
#[ comment = "This is a comment on Project X." ];
618+
#![desc = "Project X"]
619+
#![license = "BSD"]
620+
#![comment = "This is a comment on Project X."]
621621
622622
// Specify the output type
623-
#[ crate_type = "lib" ];
623+
#![crate_type = "lib"]
624624
625625
// Turn on a warning
626-
#[ warn(non_camel_case_types) ];
626+
#![warn(non_camel_case_types)]
627627
~~~~
628628

629629
A crate that contains a `main` function can be compiled to an executable.

0 commit comments

Comments
 (0)