Skip to content

Commit a18ea5a

Browse files
committed
---
yaml --- r: 119215 b: refs/heads/dist-snap c: b727bb7 h: refs/heads/master i: 119213: a67b1b7 119211: 6b330b5 119207: b8e3b41 119199: b33ec98 v: v3
1 parent f103aee commit a18ea5a

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ refs/heads/try: 1813e5aa1a03b0596b8de7abd1af31edf5d6098f
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c
9-
refs/heads/dist-snap: 838a57ba9e24e1f7c293828de142f56e64a2900b
9+
refs/heads/dist-snap: b727bb7febf8662ce4b45e46985ff192490cbbb5
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
1212
refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0

branches/dist-snap/src/doc/rust.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -875,7 +875,7 @@ and `extern crate` declarations.
875875
An example of what will and will not work for `use` items:
876876

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

17021702
An example of attributes:
17031703

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

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

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

39803980
~~~~
3981-
#[feature(phase)];
3981+
#![feature(phase)]
39823982
#[phase(syntax, link)] extern crate log;
39833983
39843984
fn main() {

0 commit comments

Comments
 (0)