diff options
| author | reus <reusee@ymail.com> | 2013-06-22 17:49:32 +0800 |
|---|---|---|
| committer | reus <reusee@ymail.com> | 2013-06-22 17:49:32 +0800 |
| commit | 9b2d9a9539d77695e915ebed189575d1249e7064 (patch) | |
| tree | f3cd5df9d067b8c9d62ceb95b6452f185a79dd8f | |
| parent | dc4560dc26498573516d833cb2333b54071070e3 (diff) | |
| download | rust-9b2d9a9539d77695e915ebed189575d1249e7064.tar.gz rust-9b2d9a9539d77695e915ebed189575d1249e7064.zip | |
replaced some 'std::' with 'extra::' in comments
| -rw-r--r-- | src/libextra/arc.rs | 2 | ||||
| -rw-r--r-- | src/libextra/base64.rs | 20 | ||||
| -rw-r--r-- | src/libextra/future.rs | 2 | ||||
| -rw-r--r-- | src/libextra/net_ip.rs | 4 | ||||
| -rw-r--r-- | src/libstd/os.rs | 2 | ||||
| -rw-r--r-- | src/libstd/str.rs | 2 |
6 files changed, 16 insertions, 16 deletions
diff --git a/src/libextra/arc.rs b/src/libextra/arc.rs index 661224b0a80..7746e0f06a6 100644 --- a/src/libextra/arc.rs +++ b/src/libextra/arc.rs @@ -19,7 +19,7 @@ * * ~~~ {.rust} * extern mod std; - * use std::arc; + * use extra::arc; * let numbers=vec::from_fn(100, |ind| (ind as float)*rand::random()); * let shared_numbers=arc::ARC(numbers); * diff --git a/src/libextra/base64.rs b/src/libextra/base64.rs index 5bf4dd517a5..392e7ff29a2 100644 --- a/src/libextra/base64.rs +++ b/src/libextra/base64.rs @@ -36,8 +36,8 @@ impl<'self> ToBase64 for &'self [u8] { * # Example * * ~~~ {.rust} - * extern mod std; - * use std::base64::ToBase64; + * extern mod extra; + * use extra::base64::ToBase64; * * fn main () { * let str = [52,32].to_base64(); @@ -99,8 +99,8 @@ impl<'self> ToBase64 for &'self str { * # Example * * ~~~ {.rust} - * extern mod std; - * use std::base64::ToBase64; + * extern mod extra; + * use extra::base64::ToBase64; * * fn main () { * let str = "Hello, World".to_base64(); @@ -127,9 +127,9 @@ impl<'self> FromBase64 for &'self [u8] { * # Example * * ~~~ {.rust} - * extern mod std; - * use std::base64::ToBase64; - * use std::base64::FromBase64; + * extern mod extra; + * use extra::base64::ToBase64; + * use extra::base64::FromBase64; * * fn main () { * let str = [52,32].to_base64(); @@ -207,9 +207,9 @@ impl<'self> FromBase64 for &'self str { * This converts a string literal to base64 and back. * * ~~~ {.rust} - * extern mod std; - * use std::base64::ToBase64; - * use std::base64::FromBase64; + * extern mod extra; + * use extra::base64::ToBase64; + * use extra::base64::FromBase64; * use core::str; * * fn main () { diff --git a/src/libextra/future.rs b/src/libextra/future.rs index 4652e1d6477..030e63adca9 100644 --- a/src/libextra/future.rs +++ b/src/libextra/future.rs @@ -17,7 +17,7 @@ * ~~~ {.rust} * # fn fib(n: uint) -> uint {42}; * # fn make_a_sandwich() {}; - * let mut delayed_fib = std::future::spawn (|| fib(5000) ); + * let mut delayed_fib = extra::future::spawn (|| fib(5000) ); * make_a_sandwich(); * println(fmt!("fib(5000) = %?", delayed_fib.get())) * ~~~ diff --git a/src/libextra/net_ip.rs b/src/libextra/net_ip.rs index 91c357088c9..718da87af25 100644 --- a/src/libextra/net_ip.rs +++ b/src/libextra/net_ip.rs @@ -55,7 +55,7 @@ pub struct ParseAddrErr { * * # Arguments * - * * ip - a `std::net::ip::IpAddr` + * * ip - a `extra::net::ip::IpAddr` */ pub fn format_addr(ip: &IpAddr) -> ~str { match *ip { @@ -80,7 +80,7 @@ pub fn format_addr(ip: &IpAddr) -> ~str { * Get the associated port * * # Arguments - * * ip - a `std::net::ip::IpAddr` + * * ip - a `extra::net::ip::IpAddr` */ pub fn get_port(ip: &IpAddr) -> uint { match *ip { diff --git a/src/libstd/os.rs b/src/libstd/os.rs index 59b40b93d4d..dff72e844bf 100644 --- a/src/libstd/os.rs +++ b/src/libstd/os.rs @@ -1716,5 +1716,5 @@ mod tests { assert!(!os::mkdir_recursive(&path, (S_IRUSR | S_IWUSR | S_IXUSR) as i32)); } - // More recursive_mkdir tests are in std::tempfile + // More recursive_mkdir tests are in extra::tempfile } diff --git a/src/libstd/str.rs b/src/libstd/str.rs index f3226b27d1b..33380c9e150 100644 --- a/src/libstd/str.rs +++ b/src/libstd/str.rs @@ -14,7 +14,7 @@ * Strings are a packed UTF-8 representation of text, stored as null * terminated buffers of u8 bytes. Strings should be indexed in bytes, * for efficiency, but UTF-8 unsafe operations should be avoided. For - * some heavy-duty uses, try std::rope. + * some heavy-duty uses, try extra::rope. */ use at_vec; |
