manual: update style

This commit is contained in:
Corey Richardson 2014-04-04 01:04:37 -04:00
parent b6d5dafea5
commit 13ac12db1c

View File

@ -612,18 +612,18 @@ the behavior of the compiler.
~~~~ ~~~~
// Crate ID // Crate ID
#[ crate_id = "projx#2.5" ]; #![crate_id = "projx#2.5"]
// Additional metadata attributes // Additional metadata attributes
#[ desc = "Project X" ]; #![desc = "Project X"]
#[ license = "BSD" ]; #![license = "BSD"]
#[ comment = "This is a comment on Project X." ]; #![comment = "This is a comment on Project X."]
// Specify the output type // Specify the output type
#[ crate_type = "lib" ]; #![crate_type = "lib"]
// Turn on a warning // Turn on a warning
#[ warn(non_camel_case_types) ]; #![warn(non_camel_case_types)]
~~~~ ~~~~
A crate that contains a `main` function can be compiled to an executable. A crate that contains a `main` function can be compiled to an executable.