File tree Expand file tree Collapse file tree 6 files changed +16
-16
lines changed Expand file tree Collapse file tree 6 files changed +16
-16
lines changed Original file line number Diff line number Diff line change 19
19
*
20
20
* ~~~ {.rust}
21
21
* extern mod std;
22
- * use std ::arc;
22
+ * use extra ::arc;
23
23
* let numbers=vec::from_fn(100, |ind| (ind as float)*rand::random());
24
24
* let shared_numbers=arc::ARC(numbers);
25
25
*
Original file line number Diff line number Diff line change @@ -36,8 +36,8 @@ impl<'self> ToBase64 for &'self [u8] {
36
36
* # Example
37
37
*
38
38
* ~~~ {.rust}
39
- * extern mod std ;
40
- * use std ::base64::ToBase64;
39
+ * extern mod extra ;
40
+ * use extra ::base64::ToBase64;
41
41
*
42
42
* fn main () {
43
43
* let str = [52,32].to_base64();
@@ -99,8 +99,8 @@ impl<'self> ToBase64 for &'self str {
99
99
* # Example
100
100
*
101
101
* ~~~ {.rust}
102
- * extern mod std ;
103
- * use std ::base64::ToBase64;
102
+ * extern mod extra ;
103
+ * use extra ::base64::ToBase64;
104
104
*
105
105
* fn main () {
106
106
* let str = "Hello, World".to_base64();
@@ -127,9 +127,9 @@ impl<'self> FromBase64 for &'self [u8] {
127
127
* # Example
128
128
*
129
129
* ~~~ {.rust}
130
- * extern mod std ;
131
- * use std ::base64::ToBase64;
132
- * use std ::base64::FromBase64;
130
+ * extern mod extra ;
131
+ * use extra ::base64::ToBase64;
132
+ * use extra ::base64::FromBase64;
133
133
*
134
134
* fn main () {
135
135
* let str = [52,32].to_base64();
@@ -207,9 +207,9 @@ impl<'self> FromBase64 for &'self str {
207
207
* This converts a string literal to base64 and back.
208
208
*
209
209
* ~~~ {.rust}
210
- * extern mod std ;
211
- * use std ::base64::ToBase64;
212
- * use std ::base64::FromBase64;
210
+ * extern mod extra ;
211
+ * use extra ::base64::ToBase64;
212
+ * use extra ::base64::FromBase64;
213
213
* use core::str;
214
214
*
215
215
* fn main () {
Original file line number Diff line number Diff line change 17
17
* ~~~ {.rust}
18
18
* # fn fib(n: uint) -> uint {42};
19
19
* # fn make_a_sandwich() {};
20
- * let mut delayed_fib = std ::future::spawn (|| fib(5000) );
20
+ * let mut delayed_fib = extra ::future::spawn (|| fib(5000) );
21
21
* make_a_sandwich();
22
22
* println(fmt!("fib(5000) = %?", delayed_fib.get()))
23
23
* ~~~
Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ pub struct ParseAddrErr {
55
55
*
56
56
* # Arguments
57
57
*
58
- * * ip - a `std ::net::ip::IpAddr`
58
+ * * ip - a `extra ::net::ip::IpAddr`
59
59
*/
60
60
pub fn format_addr( ip : & IpAddr ) -> ~str {
61
61
match * ip {
@@ -80,7 +80,7 @@ pub fn format_addr(ip: &IpAddr) -> ~str {
80
80
* Get the associated port
81
81
*
82
82
* # Arguments
83
- * * ip - a `std ::net::ip::IpAddr`
83
+ * * ip - a `extra ::net::ip::IpAddr`
84
84
*/
85
85
pub fn get_port ( ip : & IpAddr ) -> uint {
86
86
match * ip {
Original file line number Diff line number Diff line change @@ -1717,5 +1717,5 @@ mod tests {
1717
1717
assert ! ( !os:: mkdir_recursive( & path, ( S_IRUSR | S_IWUSR | S_IXUSR ) as i32 ) ) ;
1718
1718
}
1719
1719
1720
- // More recursive_mkdir tests are in std ::tempfile
1720
+ // More recursive_mkdir tests are in extra ::tempfile
1721
1721
}
Original file line number Diff line number Diff line change 14
14
* Strings are a packed UTF-8 representation of text, stored as null
15
15
* terminated buffers of u8 bytes. Strings should be indexed in bytes,
16
16
* for efficiency, but UTF-8 unsafe operations should be avoided. For
17
- * some heavy-duty uses, try std ::rope.
17
+ * some heavy-duty uses, try extra ::rope.
18
18
*/
19
19
20
20
use at_vec;
You can’t perform that action at this time.
0 commit comments