about summary refs log tree commit diff
diff options
context:
space:
mode:
authorCorey Richardson <corey@octayn.net>2014-04-04 01:04:37 -0400
committerCorey Richardson <corey@octayn.net>2014-04-04 02:08:50 -0400
commit13ac12db1c3ec1542464fe65a56e2fc33278beb6 (patch)
treeb70c1b3cd49ca0a6abd1ec821a8ff388aefb1730
parentb6d5dafea58c7f8f254333d53fe6b4b8ee8763e3 (diff)
downloadrust-13ac12db1c3ec1542464fe65a56e2fc33278beb6.tar.gz
rust-13ac12db1c3ec1542464fe65a56e2fc33278beb6.zip
manual: update style
-rw-r--r--src/doc/rust.md12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/doc/rust.md b/src/doc/rust.md
index f8ce61d28ad..1ec5057e390 100644
--- a/src/doc/rust.md
+++ b/src/doc/rust.md
@@ -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.