Skip to content

Commit ac49069

Browse files
committed
---
yaml --- r: 147789 b: refs/heads/try2 c: ff801d6 h: refs/heads/master i: 147787: e021df8 v: v3
1 parent 1e8ebd3 commit ac49069

File tree

3 files changed

+11
-7
lines changed

3 files changed

+11
-7
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: 6bc278c8c636a3964aca4b8d2d89e0321d345df3
8+
refs/heads/try2: ff801d662ebdebee4845dcc825b366215e4b88bf
99
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try2/src/libextra/getopts.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
//!
3232
//! ~~~{.rust}
3333
//! extern mod extra;
34-
//! use extra::getopts::{optopt,optflag,getopts};
34+
//! use extra::getopts::{optopt,optflag,getopts,Opt};
3535
//! use std::os;
3636
//!
3737
//! fn do_work(inp: &str, out: Option<~str>) {

branches/try2/src/libstd/str.rs

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,15 @@ there are three common kinds of strings in rust:
3838
As an example, here's a few different kinds of strings.
3939
4040
```rust
41-
let owned_string = ~"I am an owned string";
42-
let managed_string = @"This string is garbage-collected";
43-
let borrowed_string1 = "This string is borrowed with the 'static lifetime";
44-
let borrowed_string2: &str = owned_string; // owned strings can be borrowed
45-
let borrowed_string3: &str = managed_string; // managed strings can also be borrowed
41+
#[feature(managed_boxes)];
42+
43+
fn main() {
44+
let owned_string = ~"I am an owned string";
45+
let managed_string = @"This string is garbage-collected";
46+
let borrowed_string1 = "This string is borrowed with the 'static lifetime";
47+
let borrowed_string2: &str = owned_string; // owned strings can be borrowed
48+
let borrowed_string3: &str = managed_string; // managed strings can also be borrowed
49+
}
4650
```
4751
4852
From the example above, you can see that rust has 3 different kinds of string

0 commit comments

Comments
 (0)