1
Fork 0

Rename str::bytes to str::to_bytes

Closes #3245
This commit is contained in:
Tim Chevalier 2012-08-23 15:44:57 -07:00
parent 0698fc6650
commit 9f591319dd
24 changed files with 87 additions and 86 deletions

View file

@ -15,9 +15,9 @@ impl @~[u8]: ToBytes {
}
impl ~str: ToBytes {
fn to_bytes() -> ~[u8] { str::bytes(self) }
fn to_bytes() -> ~[u8] { str::to_bytes(self) }
}
impl @(~str): ToBytes {
fn to_bytes() -> ~[u8] { str::bytes(*self) }
fn to_bytes() -> ~[u8] { str::to_bytes(*self) }
}