Skip to content

Commit c8d57fd

Browse files
committed
---
yaml --- r: 150566 b: refs/heads/try2 c: b727bb7 h: refs/heads/master v: v3
1 parent 091da4a commit c8d57fd

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
@@ -5,7 +5,7 @@ refs/heads/snap-stage3: 78a7676898d9f80ab540c6df5d4c9ce35bb50463
55
refs/heads/try: 519addf6277dbafccbb4159db4b710c37eaa2ec5
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8-
refs/heads/try2: 838a57ba9e24e1f7c293828de142f56e64a2900b
8+
refs/heads/try2: b727bb7febf8662ce4b45e46985ff192490cbbb5
99
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try2/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)