"str": rename "str_from_cstr" to "from_cstr" (analogous to the other "from_*")

This commit is contained in:
Lenny222 2012-01-03 19:08:13 +01:00 committed by Marijn Haverbeke
parent dd284eb396
commit d1ffe5034b
5 changed files with 9 additions and 9 deletions

View file

@ -35,7 +35,7 @@ fn getenv(n: str) -> option::t<str> unsafe {
option::none::<str>
} else {
let s = unsafe::reinterpret_cast(s);
option::some::<str>(str::str_from_cstr(s))
option::some::<str>(str::from_cstr(s))
};
}