Skip to content

Commit

Permalink
manual: update style
Browse files Browse the repository at this point in the history
  • Loading branch information
emberian committed Apr 4, 2014
1 parent b6d5daf commit 13ac12d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/doc/rust.md
Expand Up @@ -612,18 +612,18 @@ the behavior of the compiler.

~~~~
// Crate ID
#[ crate_id = "projx#2.5" ];
#![crate_id = "projx#2.5"]
// Additional metadata attributes
#[ desc = "Project X" ];
#[ license = "BSD" ];
#[ comment = "This is a comment on Project X." ];
#![desc = "Project X"]
#![license = "BSD"]
#![comment = "This is a comment on Project X."]
// Specify the output type
#[ crate_type = "lib" ];
#![crate_type = "lib"]
// 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.
Expand Down

0 comments on commit 13ac12d

Please sign in to comment.