Merge remote-tracking branch 'reusee/master' into HEAD
This commit is contained in:
commit
ac9481a438
@ -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);
|
||||
*
|
||||
|
@ -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 () {
|
||||
|
@ -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()))
|
||||
* ~~~
|
||||
|
@ -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 {
|
||||
|
@ -1717,5 +1717,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
|
||||
}
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user