"str": rename "str_from_cstr" to "from_cstr" (analogous to the other "from_*")
This commit is contained in:
parent
dd284eb396
commit
d1ffe5034b
5 changed files with 9 additions and 9 deletions
|
|
@ -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))
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue