Merge remote-tracking branch 'reusee/master' into HEAD
This commit is contained in:
@@ -19,7 +19,7 @@
|
|||||||
*
|
*
|
||||||
* ~~~ {.rust}
|
* ~~~ {.rust}
|
||||||
* extern mod std;
|
* extern mod std;
|
||||||
* use std::arc;
|
* use extra::arc;
|
||||||
* let numbers=vec::from_fn(100, |ind| (ind as float)*rand::random());
|
* let numbers=vec::from_fn(100, |ind| (ind as float)*rand::random());
|
||||||
* let shared_numbers=arc::ARC(numbers);
|
* let shared_numbers=arc::ARC(numbers);
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -36,8 +36,8 @@ impl<'self> ToBase64 for &'self [u8] {
|
|||||||
* # Example
|
* # Example
|
||||||
*
|
*
|
||||||
* ~~~ {.rust}
|
* ~~~ {.rust}
|
||||||
* extern mod std;
|
* extern mod extra;
|
||||||
* use std::base64::ToBase64;
|
* use extra::base64::ToBase64;
|
||||||
*
|
*
|
||||||
* fn main () {
|
* fn main () {
|
||||||
* let str = [52,32].to_base64();
|
* let str = [52,32].to_base64();
|
||||||
@@ -99,8 +99,8 @@ impl<'self> ToBase64 for &'self str {
|
|||||||
* # Example
|
* # Example
|
||||||
*
|
*
|
||||||
* ~~~ {.rust}
|
* ~~~ {.rust}
|
||||||
* extern mod std;
|
* extern mod extra;
|
||||||
* use std::base64::ToBase64;
|
* use extra::base64::ToBase64;
|
||||||
*
|
*
|
||||||
* fn main () {
|
* fn main () {
|
||||||
* let str = "Hello, World".to_base64();
|
* let str = "Hello, World".to_base64();
|
||||||
@@ -127,9 +127,9 @@ impl<'self> FromBase64 for &'self [u8] {
|
|||||||
* # Example
|
* # Example
|
||||||
*
|
*
|
||||||
* ~~~ {.rust}
|
* ~~~ {.rust}
|
||||||
* extern mod std;
|
* extern mod extra;
|
||||||
* use std::base64::ToBase64;
|
* use extra::base64::ToBase64;
|
||||||
* use std::base64::FromBase64;
|
* use extra::base64::FromBase64;
|
||||||
*
|
*
|
||||||
* fn main () {
|
* fn main () {
|
||||||
* let str = [52,32].to_base64();
|
* 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.
|
* This converts a string literal to base64 and back.
|
||||||
*
|
*
|
||||||
* ~~~ {.rust}
|
* ~~~ {.rust}
|
||||||
* extern mod std;
|
* extern mod extra;
|
||||||
* use std::base64::ToBase64;
|
* use extra::base64::ToBase64;
|
||||||
* use std::base64::FromBase64;
|
* use extra::base64::FromBase64;
|
||||||
* use core::str;
|
* use core::str;
|
||||||
*
|
*
|
||||||
* fn main () {
|
* fn main () {
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
* ~~~ {.rust}
|
* ~~~ {.rust}
|
||||||
* # fn fib(n: uint) -> uint {42};
|
* # fn fib(n: uint) -> uint {42};
|
||||||
* # fn make_a_sandwich() {};
|
* # 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();
|
* make_a_sandwich();
|
||||||
* println(fmt!("fib(5000) = %?", delayed_fib.get()))
|
* println(fmt!("fib(5000) = %?", delayed_fib.get()))
|
||||||
* ~~~
|
* ~~~
|
||||||
|
|||||||
@@ -55,7 +55,7 @@ pub struct ParseAddrErr {
|
|||||||
*
|
*
|
||||||
* # Arguments
|
* # Arguments
|
||||||
*
|
*
|
||||||
* * ip - a `std::net::ip::IpAddr`
|
* * ip - a `extra::net::ip::IpAddr`
|
||||||
*/
|
*/
|
||||||
pub fn format_addr(ip: &IpAddr) -> ~str {
|
pub fn format_addr(ip: &IpAddr) -> ~str {
|
||||||
match *ip {
|
match *ip {
|
||||||
@@ -80,7 +80,7 @@ pub fn format_addr(ip: &IpAddr) -> ~str {
|
|||||||
* Get the associated port
|
* Get the associated port
|
||||||
*
|
*
|
||||||
* # Arguments
|
* # Arguments
|
||||||
* * ip - a `std::net::ip::IpAddr`
|
* * ip - a `extra::net::ip::IpAddr`
|
||||||
*/
|
*/
|
||||||
pub fn get_port(ip: &IpAddr) -> uint {
|
pub fn get_port(ip: &IpAddr) -> uint {
|
||||||
match *ip {
|
match *ip {
|
||||||
|
|||||||
@@ -1717,5 +1717,5 @@ mod tests {
|
|||||||
assert!(!os::mkdir_recursive(&path, (S_IRUSR | S_IWUSR | S_IXUSR) as i32));
|
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
|
* Strings are a packed UTF-8 representation of text, stored as null
|
||||||
* terminated buffers of u8 bytes. Strings should be indexed in bytes,
|
* terminated buffers of u8 bytes. Strings should be indexed in bytes,
|
||||||
* for efficiency, but UTF-8 unsafe operations should be avoided. For
|
* 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;
|
use at_vec;
|
||||||
|
|||||||
Reference in New Issue
Block a user