1
Fork 0

libstd: Remove ~str from all libstd modules except fmt and str.

This commit is contained in:
Patrick Walton 2014-05-16 10:45:16 -07:00
parent e402e75f4e
commit 36195eb91f
204 changed files with 2102 additions and 1496 deletions

View file

@ -671,7 +671,7 @@ impl<T> Vec<T> {
/// ```rust
/// let v = vec!("a".to_owned(), "b".to_owned());
/// for s in v.move_iter() {
/// // s has type ~str, not &~str
/// // s has type StrBuf, not &StrBuf
/// println!("{}", s);
/// }
/// ```
@ -1849,9 +1849,9 @@ mod tests {
let b: ~[u8] = FromVec::from_vec(a);
assert_eq!(b.as_slice(), &[]);
let a = vec!["one".to_owned(), "two".to_owned()];
let b: ~[~str] = FromVec::from_vec(a);
assert_eq!(b.as_slice(), &["one".to_owned(), "two".to_owned()]);
let a = vec!["one".to_strbuf(), "two".to_strbuf()];
let b: ~[StrBuf] = FromVec::from_vec(a);
assert_eq!(b.as_slice(), &["one".to_strbuf(), "two".to_strbuf()]);
struct Foo {
x: uint,