about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorLenny222 <github@kudling.de>2012-01-03 19:08:13 +0100
committerMarijn Haverbeke <marijnh@gmail.com>2012-01-04 09:33:07 +0100
commitd1ffe5034b341a9a522c01705cafdb19bac9cedb (patch)
tree3f9a1b4110b5010e7c6e8d82d38e642831be989f /src/libstd
parentdd284eb396d802646106bdb15f474ebc10a9dfbb (diff)
downloadrust-d1ffe5034b341a9a522c01705cafdb19bac9cedb.tar.gz
rust-d1ffe5034b341a9a522c01705cafdb19bac9cedb.zip
"str": rename "str_from_cstr" to "from_cstr" (analogous to the other "from_*")
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/generic_os.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/generic_os.rs b/src/libstd/generic_os.rs
index 6ffcb75c977..c1312ad4608 100644
--- a/src/libstd/generic_os.rs
+++ b/src/libstd/generic_os.rs
@@ -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))
         };
 }