Skip to content

Commit

Permalink
manual: fix a broken example
Browse files Browse the repository at this point in the history
  • Loading branch information
emberian committed Apr 4, 2014
1 parent 838a57b commit b727bb7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/doc/rust.md
Original file line number Diff line number Diff line change
Expand Up @@ -875,7 +875,7 @@ and `extern crate` declarations.
An example of what will and will not work for `use` items:

~~~~
# #[allow(unused_imports)];
# #![allow(unused_imports)]
use foo::native::start; // good: foo is at the root of the crate
use foo::baz::foobaz; // good: foo is at the root of the crate
Expand Down Expand Up @@ -1701,7 +1701,7 @@ hash apply to the item that follows the attribute.

An example of attributes:

~~~~
~~~~ {.rust}
// General metadata applied to the enclosing module or crate.
#![license = "BSD"]
Expand All @@ -1719,7 +1719,7 @@ mod bar {
// A lint attribute used to suppress a warning/error
#[allow(non_camel_case_types)]
pub type int8_t = i8;
type int8_t = i8;
~~~~

> **Note:** At some point in the future, the compiler will distinguish between
Expand Down Expand Up @@ -2160,7 +2160,7 @@ be unstable for the purposes of the lint. One can give an optional
string that will be displayed when the lint flags the use of an item.

~~~~ {.ignore}
#[warn(unstable)];
#![warn(unstable)]
#[deprecated="replaced by `best`"]
fn bad() {
Expand Down Expand Up @@ -3978,7 +3978,7 @@ Rust provides several macros to log information. Here's a simple Rust program
that demonstrates all four of them:

~~~~
#[feature(phase)];
#![feature(phase)]
#[phase(syntax, link)] extern crate log;
fn main() {
Expand Down

5 comments on commit b727bb7

@bors
Copy link
Contributor

@bors bors commented on b727bb7 Apr 4, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bors
Copy link
Contributor

@bors bors commented on b727bb7 Apr 4, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merging cmr/rust/attrib-reference = b727bb7 into auto

@bors
Copy link
Contributor

@bors bors commented on b727bb7 Apr 4, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cmr/rust/attrib-reference = b727bb7 merged ok, testing candidate = f819c21

@bors
Copy link
Contributor

@bors bors commented on b727bb7 Apr 4, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bors
Copy link
Contributor

@bors bors commented on b727bb7 Apr 4, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fast-forwarding master to auto = f819c21

Please sign in to comment.