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 1919 *
2020 * ~~~ {.rust}
2121 * extern mod std;
22- * use std ::arc;
22+ * use extra ::arc;
2323 * let numbers=vec::from_fn(100, |ind| (ind as float)*rand::random());
2424 * let shared_numbers=arc::ARC(numbers);
2525 *
Original file line number Diff line number Diff line change @@ -36,8 +36,8 @@ impl<'self> ToBase64 for &'self [u8] {
3636 * # Example
3737 *
3838 * ~~~ {.rust}
39- * extern mod std ;
40- * use std ::base64::ToBase64;
39+ * extern mod extra ;
40+ * use extra ::base64::ToBase64;
4141 *
4242 * fn main () {
4343 * let str = [52,32].to_base64();
@@ -99,8 +99,8 @@ impl<'self> ToBase64 for &'self str {
9999 * # Example
100100 *
101101 * ~~~ {.rust}
102- * extern mod std ;
103- * use std ::base64::ToBase64;
102+ * extern mod extra ;
103+ * use extra ::base64::ToBase64;
104104 *
105105 * fn main () {
106106 * let str = "Hello, World".to_base64();
@@ -127,9 +127,9 @@ impl<'self> FromBase64 for &'self [u8] {
127127 * # Example
128128 *
129129 * ~~~ {.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;
133133 *
134134 * fn main () {
135135 * let str = [52,32].to_base64();
@@ -207,9 +207,9 @@ impl<'self> FromBase64 for &'self str {
207207 * This converts a string literal to base64 and back.
208208 *
209209 * ~~~ {.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;
213213 * use core::str;
214214 *
215215 * fn main () {
Original file line number Diff line number Diff line change 1717 * ~~~ {.rust}
1818 * # fn fib(n: uint) -> uint {42};
1919 * # fn make_a_sandwich() {};
20- * let mut delayed_fib = std ::future::spawn (|| fib(5000) );
20+ * let mut delayed_fib = extra ::future::spawn (|| fib(5000) );
2121 * make_a_sandwich();
2222 * println(fmt!("fib(5000) = %?", delayed_fib.get()))
2323 * ~~~
Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ pub struct ParseAddrErr {
5555 *
5656 * # Arguments
5757 *
58- * * ip - a `std ::net::ip::IpAddr`
58+ * * ip - a `extra ::net::ip::IpAddr`
5959 */
6060pub fn format_addr( ip : & IpAddr ) -> ~str {
6161 match * ip {
@@ -80,7 +80,7 @@ pub fn format_addr(ip: &IpAddr) -> ~str {
8080 * Get the associated port
8181 *
8282 * # Arguments
83- * * ip - a `std ::net::ip::IpAddr`
83+ * * ip - a `extra ::net::ip::IpAddr`
8484 */
8585pub fn get_port ( ip : & IpAddr ) -> uint {
8686 match * ip {
Original file line number Diff line number Diff line change @@ -1717,5 +1717,5 @@ mod tests {
17171717 assert ! ( !os:: mkdir_recursive( & path, ( S_IRUSR | S_IWUSR | S_IXUSR ) as i32 ) ) ;
17181718 }
17191719
1720- // More recursive_mkdir tests are in std ::tempfile
1720+ // More recursive_mkdir tests are in extra ::tempfile
17211721}
Original file line number Diff line number Diff line change 1414 * Strings are a packed UTF-8 representation of text, stored as null
1515 * terminated buffers of u8 bytes. Strings should be indexed in bytes,
1616 * 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.
1818 */
1919
2020use at_vec;
You can’t perform that action at this time.
0 commit comments